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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update query from form 1

Status
Not open for further replies.

dmoran

Technical User
Feb 12, 2004
13
US
Can the "Update To" cell be defined by user input from a form? I have 30 records in tblmembers where I would like to be able to update the "dues" field on all records from an update query that runs and is defined from a form -

Thank you-
 
I did, but not sure if I'm going about it correctly. [tbl_formname].[dues] in the "update to" cell - when I run the query, it clears out the fields (no, I didn't select a delete query).

Thanks for any help....
 
The "update to" is the value you want to place in a field. Since you haven't provided form, control, or other specifics you could try something like:
Code:
UPDATE tblYourTable
SET YourField = Forms!frmYourForm!txtYourControl
WHERE [add a condition here if you like];

I usually back up my mdb prior to using large updates.

Duane
Hook'D on Access
MS Access MVP
 
Thanks - I was using a bound form. Works great as you described above - as usual, great feedback.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top