G
Guest
A command button that opened a form in Acess 2003 will no longer work in
Acess 2007. This button is has VBA code in its event procdure. Other buttons
that use VBA do manage to open Queries. Code below
Private Sub RecordSearch_Click()
On Error GoTo Err_RecordSearch_Click
Dim stDocName As String
stDocName = "RecordSearch"
DoCmd.OpenForm stDocName, acNormal, acEdit
Exit_RecordSearch_Click:
Exit Sub
Err_RecordSearch_Click:
MsgBox Err.Description
Resume Exit_RecordSearch_Click
End Sub
Acess 2007. This button is has VBA code in its event procdure. Other buttons
that use VBA do manage to open Queries. Code below
Private Sub RecordSearch_Click()
On Error GoTo Err_RecordSearch_Click
Dim stDocName As String
stDocName = "RecordSearch"
DoCmd.OpenForm stDocName, acNormal, acEdit
Exit_RecordSearch_Click:
Exit Sub
Err_RecordSearch_Click:
MsgBox Err.Description
Resume Exit_RecordSearch_Click
End Sub