I have just finished one of the applications I have written.
I have wondered around several offices in the building and installed it on every PC that needs it.
One function of the application uses the following code:
Tables.Clear
Dim db As Database
Dim qdef As QueryDef
Dim td As TableDef
Dim dbname As String
Set db = OpenDatabase(DatabaseDir.Path + "\" + DatabaseFile.Text)
For Each td In db.TableDefs
If td.Attributes = 0 Then Tables.AddItem td.Name
Next td
db.Close
... in order to display a list of tables in a database. This works fine on some PCs and on others it does NOTHING. No errors. It just does nothing.
What sort of thing could cause this? I dont know where to start on this one.
Any advice?
Many thanks,
elziko
I have wondered around several offices in the building and installed it on every PC that needs it.
One function of the application uses the following code:
Tables.Clear
Dim db As Database
Dim qdef As QueryDef
Dim td As TableDef
Dim dbname As String
Set db = OpenDatabase(DatabaseDir.Path + "\" + DatabaseFile.Text)
For Each td In db.TableDefs
If td.Attributes = 0 Then Tables.AddItem td.Name
Next td
db.Close
... in order to display a list of tables in a database. This works fine on some PCs and on others it does NOTHING. No errors. It just does nothing.
What sort of thing could cause this? I dont know where to start on this one.
Any advice?
Many thanks,
elziko