|
-
May 3rd, 2008, 08:07 AM
#36
Frenzied Member
Re: Help, Unable to add Records into Database
It is correct.
However, IF your PK is Numeric (integer) and its incremental or auto number, there is an easier way (provided no customers are deleted also)
Code:
SELECT MAX(Cust_ID) FROM Customer
or even , without a loop, just use a rsDataCust.MoveLast, and get the CustomerID.
Is your Original Problem solved, Unable to Adding records?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|