Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: JR "Bob" Dobbs
...Note that the use of max(clientid) is not guarenteed to get you the clientid inserted in the previous statement.
Copy link to clipboard
Copied
quote:
Originally posted by: Steve Sommers
quote:
Originally posted by: JR "Bob" Dobbs
...Note that the use of max(clientid) is not guarenteed to get you the clientid inserted in the previous statement.
If you wrap your query with a CFTRANSACTION it will. But this might slow things down a bit on a busy site.
Copy link to clipboard
Copied
quote:
Originally posted by: JR "Bob" Dobbs
As far as I know Access does not support transactions. Also bear in mind that the isolation level of the transaction would affect the results of the select(max) if multiple inserts occurred at the same time.