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

Text Box get text added to table 1

Status
Not open for further replies.

JaBurd311

MIS
Sep 21, 2001
24
US
I have a Form with an unbound textbox with a Add button right next to it. I want to allow the user to type something into the textbox and then click the Add button to have what is in the textbox added to my table.

Thanks in advance.

Jason
 
In the click event for the add button put something like:

CurrentDatabase.execute "insert into myTable values('"+Me.textBox1+"')"

This is bare minimum, you should probably add logic to test for empty strings etc if appropriate. Best Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top