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

INSERT INTO IN VBA

Status
Not open for further replies.

kpetas

Programmer
Oct 19, 2006
11
ES
I want to insert data in my DataBase (in acces) with VBA. How can I do it? I have an autonumerical field and I don't know how to excute a INSERT INTO command in VBA. Thanks
 
In Access VBA:
DoCmd.RunSQL "INSERT INTO ..."

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank you for your help, but nw I have another problem, how can I input an autonumerical (incremental) number?
I don't know if I'm explaining.
table(ID,Name)
the ID is primary key and incremental
 
What have you tried ?
Where are you stuck ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top