Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need a bit of help with recordsets ....

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm trying to, with the click of a button, to update a field [productQuantity] in table products, with the related data [productQuantity] from the orderDetails table; following inputting an order. I assume this will involve recordsets, which I am struggling with. Haven't even figured out what the book is trying to say....difference between ADO and DAO ....god I'm lost.

What's the best way to tackle this. Thanks in advance.
 
If all you want to do is update a record then look at using a simple sql statement such as

Code:
docmd.runsql "Update tblWhatever Set fldWhatever = 'value' where fldWhereever = 'value'"

This will update flwhatever to 'value if fldwherever = 'value' sql statements often times run much faster than opening/closing and updating recordsets and are a lot easier to use.

Scott Hellewell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top