I have been working on an Access 2007 database and have copied and recopied it as I make changes to the forms.
I have this code to display tables in my database
---------------------------------------
Code:
Private Sub CMD_get_GDM_Click()
List2.Visible = True
List2.RowSource = ""
Set db = CurrentDb()
DoCmd.SetWarnings False
For Each tbl In db.TableDefs
If Left$(tbl.Name, 3) = "dbo" Then
List2.RowSource = tbl.Name & "; " & List2.RowSource
End If
Next
End Sub
I have deleted all tables from my database and then send it off to the user. He links via ODBC to his source tables and runs this code.
HOWEVER the tables listed for him are NOT his linked tables but the ones I deleted.
I've passed this database to another PC and done the same process and my test works just fine, displaying the proper current tables.
(Note: the "dbo" table name does not appear to be a problem)
Help
Jim