Is there a way to edit queries programmaticall y? Most all of the table names have changed (something we had no control over). So now we have to edit each query so it's using the new tables' name. Instead of going into each query & make the changes manually, can it be done via code, as there are a lot of queries? What we need to change is if the table name doesn't start with "tbl", then it needs "dbo" placed in front of the name. I've modified queries before using the ADOX.Catalog & ADODB.Command but that's actually writing the sql in code. What I need to do is loop thru each query in the db (which I have listed in a listbox) & for each one get the sql, make the changes to the table names & then save it. We have Access 2000. We did turn the AutoCorrect on, but that didn't make changes to anything in the Criteria section.
TIA for any suggestions.
TIA for any suggestions.
Comment