S
sean
Hello
I just split a database and I wanted to distribute the front end to users.
The front end works fine on my computer but when I copy the front end to
other users the database opens with an error and points to this code.
Private Sub Form_Load()
Dim gs_data_path As String
Set ws = Workspaces(0)
*****This is the line that gets highlighted*****
Open "c:\app.ini" For Input As #1
***********************************
Line Input #1, gs_data_path
If Len(gs_data_path) = 0 Then
gs_data_path = "c:\apps\tnkidney"
End If
Set db = ws.OpenDatabase(gs_data_path & "\tkfcontr.mdb")
Close #1
End Sub
Thanks.
I just split a database and I wanted to distribute the front end to users.
The front end works fine on my computer but when I copy the front end to
other users the database opens with an error and points to this code.
Private Sub Form_Load()
Dim gs_data_path As String
Set ws = Workspaces(0)
*****This is the line that gets highlighted*****
Open "c:\app.ini" For Input As #1
***********************************
Line Input #1, gs_data_path
If Len(gs_data_path) = 0 Then
gs_data_path = "c:\apps\tnkidney"
End If
Set db = ws.OpenDatabase(gs_data_path & "\tkfcontr.mdb")
Close #1
End Sub
Thanks.