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

Controls on form for input to two tables

Status
Not open for further replies.

cac2

Programmer
May 7, 2002
7
US
How can I put a control (checkbox) on a form that puts the info in a different table than the one that the form is built on?
 
You could create a recordset based on the other table and store the value.

Dim db as Database
Dim rs as Recordset

Set db = CurrentDb
Set rs = db.OpenRecordset("OtherTableName", dbOpenDynaset)

rs.Edit
rs!checkboxname = value
rs.Update

rs.Close
db.Close

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top