K
KGF
I have some reports that were created in Access 2002. We now have several
2003 users and they are complaining that they can't open these reports. An
error pops up that eventually seems to incriminate the code below as not
being valid in Access 2003. Just wondering if anybody might spot a problem
with this code, or have other suggestions on how to fix this.
Option Compare Database
Private Sub Command9_Click()
On Error GoTo Err_Command9_Click
Dim stDocName As String
stDocName = "Find blanks and by Dept"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command9_Click:
Exit Sub
Err_Command9_Click:
MsgBox Err.Description
Resume Exit_Command9_Click
End Sub
Private Sub Find_by_Extension_Click()
On Error GoTo Err_Find_by_Extension_Click
Dim stDocName As String
stDocName = "Find by Extension"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Find_by_Extension_Click:
Exit Sub
Err_Find_by_Extension_Click:
MsgBox Err.Description
Resume Exit_Find_by_Extension_Click
End Sub
2003 users and they are complaining that they can't open these reports. An
error pops up that eventually seems to incriminate the code below as not
being valid in Access 2003. Just wondering if anybody might spot a problem
with this code, or have other suggestions on how to fix this.
Option Compare Database
Private Sub Command9_Click()
On Error GoTo Err_Command9_Click
Dim stDocName As String
stDocName = "Find blanks and by Dept"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command9_Click:
Exit Sub
Err_Command9_Click:
MsgBox Err.Description
Resume Exit_Command9_Click
End Sub
Private Sub Find_by_Extension_Click()
On Error GoTo Err_Find_by_Extension_Click
Dim stDocName As String
stDocName = "Find by Extension"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Find_by_Extension_Click:
Exit Sub
Err_Find_by_Extension_Click:
MsgBox Err.Description
Resume Exit_Find_by_Extension_Click
End Sub