I'm having trouble running an INSERT
statement where there's an autonumber as the PK field. I have an Auto-incrementing long
as the Primary Key, and then 4 fields of type double
; and yet Access (using ADO) seems to want five values for the insert statement.
INSERT INTO [MY_TABLE] VALUES (1.0, 2.0, 3.0, 4.0);
>> Error: Number of query values and destinations fields are not the same.
INSERT INTO [MY_TABLE] VALUE (1, 1.0, 2.0, 3.0, 4.0);
>> Success!!
How do I use Autonumbering to actually autonumber?