C
Chris K
I'm using code in a form open event to connect to back end table
Private Sub Form_Load()
Dim tbl As TableDef
For Each tbl In CurrentDb.TableDefs
If (tbl.Attributes And dbSystemObject) = 0 _
Then tbl.Connect = ";DATABASE=" & CurrentProject.path &
"\JHP_be.mdb": tbl.RefreshLink
Next
I used this before without a problem but I keep getting errors this time
I cant help wonder whether the code is OK (always was before) and I'm just
not running it early enough
Is there anyway I can run this code upon start up (not wait until the form
opens on start up)
Private Sub Form_Load()
Dim tbl As TableDef
For Each tbl In CurrentDb.TableDefs
If (tbl.Attributes And dbSystemObject) = 0 _
Then tbl.Connect = ";DATABASE=" & CurrentProject.path &
"\JHP_be.mdb": tbl.RefreshLink
Next
I used this before without a problem but I keep getting errors this time
I cant help wonder whether the code is OK (always was before) and I'm just
not running it early enough
Is there anyway I can run this code upon start up (not wait until the form
opens on start up)