G
Guest
I have a Main Switchboard and would like to open a Form from a different
database.
I try to do this with a command button and it looks like the following:
Private Sub OpenVendedorForm_Click()
On Error GoTo Err_OpenVendedorForm_Click
Dim stDocname As String
Dim stLinkCriteria As String
stDocname = "C:\\cps208/sales.mdb/salespersonal"
DoCmd.OpenForm stDocname, , , stLinkCriteria
Exit_OpenVendedorForm_Click:
Exit Sub
Err_OpenVendedorForm_Click:
MsgBox Err.Description
Resume Exit_OpenVendedorForm_Click
End Sub
I get an error message that the Form cannot be found; but the string
"C:\\cps208/sales.mdb/salespersonal" is correct.
Can someone tell me how I can open a form which is in a different database?
Thanks
Klaus
database.
I try to do this with a command button and it looks like the following:
Private Sub OpenVendedorForm_Click()
On Error GoTo Err_OpenVendedorForm_Click
Dim stDocname As String
Dim stLinkCriteria As String
stDocname = "C:\\cps208/sales.mdb/salespersonal"
DoCmd.OpenForm stDocname, , , stLinkCriteria
Exit_OpenVendedorForm_Click:
Exit Sub
Err_OpenVendedorForm_Click:
MsgBox Err.Description
Resume Exit_OpenVendedorForm_Click
End Sub
I get an error message that the Form cannot be found; but the string
"C:\\cps208/sales.mdb/salespersonal" is correct.
Can someone tell me how I can open a form which is in a different database?
Thanks
Klaus