ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 8th, 2000, 08:50 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Inserting Records into 3 linked Tables using an AUTOID

<i><b>Originally posted by : KevinM (mullarkey@fs5.ee.umist.ac.uk)</b></i><br />What's the best locking procedure when a user needs to add 3 records to 3 linked MS Access tables which are linked via an Auto ID Primary field...<br />e.g<br />My asp page consists of order details entry (table1), order items entry (table2) and order cost centres (table3).<br />So when a record is added to table1 then the Auto ID Access generates needs to be the link field for table 2 and 3.<br />I know I can get it using a DMax function but how can I guarantee that another user hasn't added a record to table1 in between the User1 Update and calling the DMax function?<br /><br />Many Thanks<br /><br />Kevin M<br />

Reply With Quote
  #2  
Old May 10th, 2000, 10:26 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : steve</b></i><br />http://www.microsoft.com/data/ado/adords15/docs/adomth03_1.htm<br /><br />here is the different cursors you can use when opening a recordset. when looking for stuff like this i'd look to the object models and see what methods, properties you can use<br /><br /><br />------------<br />KevinM at 5/8/2000 6:50:53 AM<br /><br />What's the best locking procedure when a user needs to add 3 records to 3 linked MS Access tables which are linked via an Auto ID Primary field...<br />e.g<br />My asp page consists of order details entry (table1), order items entry (table2) and order cost centres (table3).<br />So when a record is added to table1 then the Auto ID Access generates needs to be the link field for table 2 and 3.<br />I know I can get it using a DMax function but how can I guarantee that another user hasn't added a record to table1 in between the User1 Update and calling the DMax function?<br /><br />Many Thanks<br /><br />Kevin M<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Inserting Records into 3 linked Tables using an AUTOID


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT