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!

Subform save in form table

Status
Not open for further replies.

nadir66

IS-IT--Management
May 30, 2002
34
Hi
I have a form with a subform, where the two are not conected at all. The subform is a table with static data, and the forms table is dynamic.
how can i create a link and have the subform main subject saved ion the form table for further use and display.
To elaborate:
the subform contains all customer data, the form is a work docket to be filled.
thank you
 
If I correctly understand what you're doing this should help. If you haven't already done so, you'll need to create a recordset. Use .Addnew to add a new record or .Update to change the data in that field in an existing record.
With rst
.Addnew
![tableFieldName] = formControlName.Value
.Update

or
sqlstr = "Update tablename Set [tablename].[fieldName] = '" & formControlName.Value & "' Where .....(add your criteria)
dbs.Execute (sqlstr)
Hope that works for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top