I'm trying to create a table that contains an AutoNumber field using the following SQL:
Code:
CREATE TABLE [tmpTable] ([ID] AutoNumber);
but I get a COM error stating that there's an error in the field description. If I use Long as the data type it accepts it, but according to w3schools online AutoNumber is a perfectly valid Access data type.
I've tried it with all lowercase, with PRIMARY KEY and a few other combinations but it simply refuses. Can anyone tell me what I'm doing wrong here?
I'm using ADO (#importing msado15.dll).