navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

wondering if this can be done

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> wondering if this can be done
Page: [1]
 
charlie df

 

Posts: 79
From: las vegas nv USA
Status: offline

 
wondering if this can be done - 8/15/2001 14:48:00   
I would like to use one form to update 2 tables in a database, one alwasy gets updated, and the other gets update if certain condtionons are met.

Table 1: updated no matter what, adding a new record to the table.
Table 2: Would be updated by using information ( a comparison of 2 numbers) form Table 2 to determine if a condition is met. If the condition is met then one of the 2 numbers would then be updated.

I have just started to learn VBScript, and think I can put together the If..Then..Else script, but not sure about submitting one form to do the adding and updating of records.

Thanks for any help anyone can offer me.

Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: wondering if this can be done - 8/15/2001 16:36:00   
Assuming you have a working database update, you would do something like :

<%
Open.Database connection

' Execute(Do database #1 code)

If Comparison a <> B then

' Execute(Do update # 2 code)

End if
Close.Database connection

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!
VP-ASP Shopping cart


(in reply to charlie df)
charlie df

 

Posts: 79
From: las vegas nv USA
Status: offline

 
RE: wondering if this can be done - 8/15/2001 16:48:00   
Thanks spooky, I'm going to give it a try. Like I said, i am just starting out in VBScript, so I will try to get my if then else statements right, if I have any problem I'll be back. Just glad to know that it's possible and I am not wasting my time.

(in reply to charlie df)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> wondering if this can be done
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts