(resolved)***Adding data to sql table
Hello everyone,
I have a test box (txtAdd) and a button (btnAdd) on a form. I want to type in a number in the text box, click the add button, and have it save to my sql database. I have the sql statements but im not sure what the other code looks like that I need. Could some show me an example?
Thanks
Re: Adding data to sql table
Quote:
Originally posted by pea33nut
Hello everyone,
I have a test box (txtAdd) and a button (btnAdd) on a form. I want to type in a number in the text box, click the add button, and have it save to my sql database. I have the sql statements but im not sure what the other code looks like that I need. Could some show me an example?
Thanks
this from mssql 2000
VB Code:
@txtbox varchar (50)
as
insert into nameoftable
values(@txtbox)
go
hope it helps