Hi,
I created a form that contains a button (MS Access 2007). With this button I want to open a second form. Unfortunately the second form does not open. Nasty detail: The button (and the code below) are generated by the button-wizard.
Code:
Private Sub Knop111_Click()
On Error GoTo Err_Knop111_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Adres_Bewerken"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Knop111_Click:
Exit Sub
Err_Knop111_Click:
MsgBox Err.Description
Resume Exit_Knop111_Click
End Sub
Any clues?