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

Adding Invoice number by unbound form to update entries in table

Status
Not open for further replies.

ch4meleon

Technical User
Jan 13, 2003
60
0
0
GB
Im sure there must be a way to do this but cant think what it is.

I need to be able to get the user to enter a invoice number, I then want the number to be stored against all records that have a yes in the "sold" field and nothing (blank) in the "invoice date" field.

Any help hugely appriciated !
 
Use a query like this (SQL code):
Code:
UPDATE yourTable
SET [invoice number]=[Forms]![your form]![invoice number control]
WHERE sold=True AND [invoice date] Is Null

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top