Hello, I would like some advices with my program, i having issues I have a program in visual basic that is linked to access database using the connection wizard. in access i set the number field to autonumber but in visual basic i putting as a text because it would not work. how can i declare autonumber in visual basic.

You do not have to do anyting to add the auto number. When a record gets saved, it will automatically add the following record number.

-->>AndreRet iz right,the best thing to do is just dont put the textbox or any input box on your interface that will provide the value in an Autonumber culumn in your database.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.