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!

How to write data to a table

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I have vba snippet that gets the username, form name, time and date when a user opens a form. I would like to output this information to a table names UserInfo. How would I go about doing this? <p>John Vogel<br><a href=mailto:john@computerwiz.net>john@computerwiz.net</a><br><a href=If you are interested in working on a very worthwhile Christian web project, please email me at<br>
volunteers@theocities.com<br>
-===================================================-<br>
-==============
 
Run an append query of that information to the destination table is the way i would do it, setting warnings off.
 
If you want to use code.......<br>
Create a recordset for the table you want to update (ex rstUpdateRecords)<br>
rstUpdateRecords.AddNew<br>
rstUpdateRecords(&quot;UserName&quot;) = me!Username!.value<br>
remaining fields and values<br>
rstUpdateRecords.Update<br>
<br>
Both AddNew and Update are required
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top