trevor3208
Technical User
I am using VB6 and need to create a new table in an existing Access 2003 database. The current application is using DAO 3.6 to perform all the other function without problems.
I did a search and found a piece of sample code to do what I need, but it uses ADO. Anyway, I implemented it and was happy to see that it worked as advertised.
My problem is that right after creating the table with ADO, there is DAO code that attempts to make changes to one of the fields (setting AllowZeroLength fo false) and it fails, implying that the table itself cannot be found. But it is there, and a shorttime later the field change works.
Any clue, and just how do you accomplish this table creation ( and setting primary key etc) using DAO. Cant see the forest for the trees!!!!
Martyn
I did a search and found a piece of sample code to do what I need, but it uses ADO. Anyway, I implemented it and was happy to see that it worked as advertised.
My problem is that right after creating the table with ADO, there is DAO code that attempts to make changes to one of the fields (setting AllowZeroLength fo false) and it fails, implying that the table itself cannot be found. But it is there, and a shorttime later the field change works.
Any clue, and just how do you accomplish this table creation ( and setting primary key etc) using DAO. Cant see the forest for the trees!!!!
Martyn