Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Open MSaccess for in a different database

I have a form with a button, and I am trying to open a form located in a different database. but I receive a message < the form name "frmcustomer" is misspeled or refers to a form that doesn't exist>

Private Sub Command0_Click()

Dim con As ADODB.Connection
Set con = New ADODB.Connection
con.Open "provider=microsoft.jet.oledb.4.0;" & _
"data source=c:\new folder\thecornerbookstore.mdb;"
DoCmd.OpenForm "frmCustomer"
End Sub

any idea?
thanks
SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial