PC Review


Reply
Thread Tools Rate Thread

DAO/ADO Recordset Question

 
 
Eddy
Guest
Posts: n/a
 
      8th Sep 2003
Hope someone can clear my thought. Thanks in advance.

I have the following table keeping all available document numbers for my
application.

Document / Num
-------------------------
Invoice / 1230
Receipt / 451

Currently, I am using SQL SELECT query to obtain the number and then utilize
SQL UPDATE query to increase the number by one. I am always worried about
somewhere between the two queries, there is a slight possibility that
someone else would obtain the old number (before the UPDATE query is
executed). So I am thinking of using a recordset to take control of the
table (ideally at the record). This way, I can read the number and increase
it by one altogether. My question is how MSDE and JET 4.0 (because I am
using both ADO and DAO) will handle the recordset when there are two
recordsets (two PCs) trying to access the table. Will MSDE / JET 4.0 arrange
the later one to wait and process it after the first one is clear. Or will
they just return an error to the later recordset.




 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset question Garu Microsoft Access Getting Started 1 3rd Aug 2009 10:33 PM
Recordset question Garu Microsoft Access Getting Started 1 3rd Aug 2009 12:20 PM
recordset question JT Microsoft Excel Programming 4 13th Aug 2008 02:29 AM
Recordset question in ASP .NET ruca Microsoft ADO .NET 3 5th Feb 2004 08:20 PM
Recordset question in ASP .NET ruca Microsoft ADO .NET 0 5th Feb 2004 07:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 PM.