bradmaunsell
Programmer
I have recently converted from Access 97 to Access 2000 and Access 2003. In both appliactions, the ON ERROR GOTO no longer works. I have tried different libraries without success.
Her is one (of many) examples where the system bombs out. It seems the system does not recognize the On Error GoTo NoTableExists. The code stops and the editor is high-lighted yellow on the Docmd.OpenTable....
So, the routine knows the tables does not exist but the code will not branch the GoTo.... code
I have this same problem in many places in my applications. I don't think there is any routine that works the On Error correctly. All of these routines have worked fine for years in Access 97.
Any thoughts?
Thanks,
Brad
South Burlington, VT
Private Sub cmdBoudereau_Click()
ValidateDates
If VALID <> True Then Exit Sub
On Error GoTo NoTableExists
DoCmd.OpenTable "tblBordereau_bsm"
SetupBordereauTable
ClearBordereau
AppendBordereauPremiums Me.txtBegDate, Me.txtEndDate
AppendBordereauEndorsements Me.txtBegDate, Me.txtEndDate
DoCmd.OpenReport "rptBordereau", acViewPreview
Exit Sub
NoTableExists:
MsgBox "No Table Exists"
End Sub
Her is one (of many) examples where the system bombs out. It seems the system does not recognize the On Error GoTo NoTableExists. The code stops and the editor is high-lighted yellow on the Docmd.OpenTable....
So, the routine knows the tables does not exist but the code will not branch the GoTo.... code
I have this same problem in many places in my applications. I don't think there is any routine that works the On Error correctly. All of these routines have worked fine for years in Access 97.
Any thoughts?
Thanks,
Brad
South Burlington, VT
Private Sub cmdBoudereau_Click()
ValidateDates
If VALID <> True Then Exit Sub
On Error GoTo NoTableExists
DoCmd.OpenTable "tblBordereau_bsm"
SetupBordereauTable
ClearBordereau
AppendBordereauPremiums Me.txtBegDate, Me.txtEndDate
AppendBordereauEndorsements Me.txtBegDate, Me.txtEndDate
DoCmd.OpenReport "rptBordereau", acViewPreview
Exit Sub
NoTableExists:
MsgBox "No Table Exists"
End Sub