Putting data in a database VB2005

VonEhle

Active member
Joined
Feb 20, 2006
Messages
26
Programming Experience
Beginner
I have a webform that contains a shopping cart. A datagrid is created on the fly as the user selects items. Once the user clicks a "complete" button, the items they selected should be dumped into a Access database.

I've had projects that pulled data into a table from a database, but never just added to a database when nothing existed initially. I'm clueless on how to do this.
 
just use an insert statemt.

Insert into [tablename] (Field1, Field2, Field3....) VALUES ('Value1,'Value2','Value3')

and use ExecuteNonQuery()
 
Back
Top