A
Alex
I have a combo box in a form where a user chooses another database and object
he/she would like to open. Using the code below, I can get the other
database open, but I'm not sure how to write the code to in turn open an
object in the newly opened database. The objects might be a report, form,
etc. Any help is much appreciated. Thanks.
Private Sub ChooseDB_Click()
Dim mypath As String
Dim myobject As String
mypath = Me.txtPath
myobject = Me.txtObject
Application.FollowHyperlink mypath
mypath.openobject.myobject ---------not working
End Sub
he/she would like to open. Using the code below, I can get the other
database open, but I'm not sure how to write the code to in turn open an
object in the newly opened database. The objects might be a report, form,
etc. Any help is much appreciated. Thanks.
Private Sub ChooseDB_Click()
Dim mypath As String
Dim myobject As String
mypath = Me.txtPath
myobject = Me.txtObject
Application.FollowHyperlink mypath
mypath.openobject.myobject ---------not working
End Sub