Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not all ODBC tables in for-each tabledef loop

Status
Not open for further replies.

Phil5673

Programmer
Sep 30, 2002
42
US
Here's the situation - I am looping through the tabledefs in a database and re-linking tables. I have 2 ODBC linked tables in the database. The "For each td in database.tabledefs" loop is only showing me the 1st ODBC table.

Just for grins, I linked another ODBC table in and guess what? I get the first two now, but not the third.

This is where it gets weird: If I do a debug.Assert to stop the loop on my ODBC tables, it stops on all three.

Any suggestions?
 
Maybe you should revisit the code, even set debug.print statements in critical areas to trace the path. You must be doing some sort of test to see if the table is linked and not a system table. Is this code validation working properly?
 
Also what is the backend db type and who provided the odbc kit for them. Just curious at the moment.


Andy Baldwin

"Testing is the most overlooked programming language on the books!
 
I solved the problem. Refreshing the tabledefs in the loop keeps the problem from occuring.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top