G
Guest
Can anyone give me a thorough explanation on how to use my data adapters to
insert new records into a SQL database that I have connected to my app. I am
very new to SQL and a little familiar with VB. The purpose of the app is to
be a front-end to populate fields in a SQL table with information obtained
from a wedge scanner.
I have the the data objects created already in the form designer...here are
the objects as follows:
Adapters:
db_Adapter1 'for the header table, tbl_HDR
db_Adapter2 'for the detail table, tbl_DET
SQL Connector:
db_Conn
Dataset:
db_RS
Now, the adapters, I have noticed, contain command text for INSERT, UPDATE,
DELETE...problem is, I don't know the syntax for using those commands or how
to declare them in code to use them. I see repeated use for them
everywhere...EX: INSERT INTO mytable(mycolumn) VALUES(@myvalue)...how the
heck do you get to this point?. Does anyone know what I speak of? Utter
frustration here!
insert new records into a SQL database that I have connected to my app. I am
very new to SQL and a little familiar with VB. The purpose of the app is to
be a front-end to populate fields in a SQL table with information obtained
from a wedge scanner.
I have the the data objects created already in the form designer...here are
the objects as follows:
Adapters:
db_Adapter1 'for the header table, tbl_HDR
db_Adapter2 'for the detail table, tbl_DET
SQL Connector:
db_Conn
Dataset:
db_RS
Now, the adapters, I have noticed, contain command text for INSERT, UPDATE,
DELETE...problem is, I don't know the syntax for using those commands or how
to declare them in code to use them. I see repeated use for them
everywhere...EX: INSERT INTO mytable(mycolumn) VALUES(@myvalue)...how the
heck do you get to this point?. Does anyone know what I speak of? Utter
frustration here!