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

insert into syntax problem

Status
Not open for further replies.

excession

Programmer
Sep 22, 2004
111
GB
in mysql, to insert a record into a table with an autoincrement primary key you use
insert into myTable values ('null', 'blah', 'blah')

when i try this with access it throws an error

what is the syntax for access so that it autonumbers the primary key field?

see... I'm no good with access :(



Looking for a job as a programmer in Bristol UK.
 
INSERT INTO myTable (Fields list WITHOUT the autonumber) VALUES (...)

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, that i can do, but it does mean rewriting every method that inserts data, is there an equivelent to the mySQL where i don't need to list very field?

Looking for a job as a programmer in Bristol UK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top