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

Simple table insertion question

Status
Not open for further replies.

Netooi

Programmer
May 15, 2002
29
0
0
US
I have a string called "MyStr" that has a name in it.
I want to be able to insert that name into a table in my Access database called tblData that has a field called Name.
Could someone hook me up with the VB to do this?
Thanks,
Netooi
 
After you have connect to the database, use this:

RS.AddNew
RS.fields("Name").value = MyStr
RS.update



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top