AutoNumber Data Type
Thank you for taking the time to report an issue.
What's wrong... Please write below.
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.
I'm using ADO (#importing msado15.dll).
In order to avoid this problem, I would like to change the Data Type for the PK in the Courses table, but with allowing the user to automatically create the value of each record (generating a custom CourseID - I.e. Course01, Course02, Course03, etc).
Any ideas on how to create the custom field for data entry purposes?
I need to combine all three to together but when I do it will not let continuing using autonumber because their is data in the field now.
Is their anyway to get around this. I still need to use autonumber after combining.
For new tables, AutoNumbering begins with 1, and is incremented by 1 with each new row. However, we occasionally want to start the AutoNumber at a number higher than 1.
The problem is that the AutoNumber field becomes "0." I believe this is happening because of the statement in the code "On Error Go To 0"
Can someone explain to me why this going to error instead of creating a new AutoNumber in the Auto field?
* In access I tried using Autonumber. (for the CUSTOMER ID field), when importing I bumped into trouble, the field in excel had general type and it is of format UKP#####. So it is not being imported.
so I decided to copy and paste the details field by field. and finally once it is done I added another field CUSTOMER ID, set it autonumber with format UKP#####. It worked fine for the first 172 records, but the 173rd record suddenly jumped up to 5495.
Or is there another way to convert the type of the excel db to the autonumber while importing to access?
I want this field to be an autonumber, but I can't change the type. For that matter, I can't even seem to add a new Autonumber field to this table. How do I do this?
I need these tables to have an autonumber. I looked at using the standard work around, using DMax, but aggregate functions aren't allowed with web tables.
Microsoft Access always numbers AutoNumber fields beginning with the number 1. If the table has data in it already, the starting value of the autonumber will be higher than the highest value already in the table. You cannot manually edit an AutoNumber field or change its starting value.
Because the database is linked to only one system, I am changing the Serial No, from Autonumber, to Number, and using code to increment the number, which also allows the user to type a number in, if necessary.
The problem is, the Serial No on the new system, is alphanumeric, e.g S25/1-9. What I would like to do is, for the Serial Number to increment, as normal, but allow the user to type in text, if necessary.
So, say the Serial No was 12345, and the next one 12346, the user could type in S25/1-9, for the next one, it would be12347.I don't know if this can be done at all,