E
eroleyikan
I am using vb6 and access. I am trying to add a field to several
tables in the same database.
adoConn.Execute "Alter Table TestTable Add Column NewTextColumn3 Text"
I loop over table names and run this line for each of them. If I run
this code with a break in it and debug line by line I get no errors.
But if I run it without a break point, most tables work but one of
them (always the same) gives me an error saying that I "do not have
the necessary permissions to use the "xyz" object." Where xyz is my
table name. But then I click on debug, and continue executing line by
line, then it works!
I cannot solve the puzzle. I already spent several hours on this just
out of pure arrogance.
Does anyone know why this is happening, or how I might avoid the
error?
Thank you
Erol Eyikan
CT
tables in the same database.
adoConn.Execute "Alter Table TestTable Add Column NewTextColumn3 Text"
I loop over table names and run this line for each of them. If I run
this code with a break in it and debug line by line I get no errors.
But if I run it without a break point, most tables work but one of
them (always the same) gives me an error saying that I "do not have
the necessary permissions to use the "xyz" object." Where xyz is my
table name. But then I click on debug, and continue executing line by
line, then it works!
I cannot solve the puzzle. I already spent several hours on this just
out of pure arrogance.
Does anyone know why this is happening, or how I might avoid the
error?
Thank you
Erol Eyikan
CT