I just realized that I'm going to need to create a table on my MS Access database inside my application. I have already been inserting and selecting from it successfully for weeks now, but I'm running into a problem when creating the table. Not to say that I can't create one at all, I can, it's the options on the column that I can't get right. Basically I have made a table that has a few number columns and a few text columns. I noticed in Access, they call the types "Number" and "Text" and "AutoNumber", well, those won't work in my SQL statement, I have to use "int" and "varchar". Now, my question is, how to I modify an int column to be auto incrementing? phpMyAdmin is showing me this:
but VB.net isn't liking the auto_increment line. The not null works, but the increment causes an error. So what is the vb.net version to making an int column auto increment?
Code:
CREATE TABLE `test` (
`num` INT NOT NULL AUTO_INCREMENT,
`test` VARCHAR NOT NULL ,
`test` VARCHAR NOT NULL
)
but VB.net isn't liking the auto_increment line. The not null works, but the increment causes an error. So what is the vb.net version to making an int column auto increment?