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

forms to table question

Status
Not open for further replies.

aperture

Programmer
Jul 25, 2001
22
US
hello all

i have a quick question. i have a form that is linked to a table, and unless the user highlights the values they enter in required fields (text or list boxes), the values do not show up in the table. how can i eliminate this requirement?

thanks,

ap
 
Assuming the form has a command button (cmdUpdate, etc), in the OnClick event:
Open the table as a recordset in VBA (form's HasModule property = true). Use .Edit, then set fieldnames = control (text box) values, then use .Update. Might need to do a .Refresh before you see the changes in the table (can't remember).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top