T
ThePro
I have a form wich has a drop down box and a command button wich now opens a
pre-determined form. What I want, if possible, is to open a specific form
depending on the option selected in the drop down box. This is the VB code
for the 'Open Form' command button.
Private Sub Enter_Click()
On Error GoTo Err_Enter_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Tabla-Estadisticas-Radiologo"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Enter_Click:
Exit Sub
Err_Enter_Click:
MsgBox Err.Description
Resume Exit_Enter_Click
End Sub
Thanks
pre-determined form. What I want, if possible, is to open a specific form
depending on the option selected in the drop down box. This is the VB code
for the 'Open Form' command button.
Private Sub Enter_Click()
On Error GoTo Err_Enter_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Tabla-Estadisticas-Radiologo"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Enter_Click:
Exit Sub
Err_Enter_Click:
MsgBox Err.Description
Resume Exit_Enter_Click
End Sub
Thanks