Question : How to correct a 3021 error?

DESCRIPTION
When I click the Delete button on the frmAHAStep_Builder1of2_VER1 I get an error.
PROBLEM DETAIL
The application displays the following error message when the DELETE button is clicked on the following form:
frmAHAStep_Builder1of2_VER1
The user does not have to go through with the delete because messages warning of the consequences of the delete, are displayed. When the user click “NEXT” the ERROR 3021 error is displayed.
The same message is displayed even if the user goes through with the delete and click NEXT.
See attached image for the exact error message.
Attachments:

Answer : How to correct a 3021 error?

Hi CSSC1.. yes I did already add it to your database I uploaded.

The same problem occurs in the LoadInputListBox() procedure of the frmSelectControlsDirectly_VER1 form because the qry_allControls query has no data.. So I added the same error handler code to this procedure as well...

Basically all I did was change this part:

ERROR_Handler:
    MsgBox "error - " & Err.Number & ", " & Err.Description
    Resume Exit_Sub

to this:

ERROR_Handler:

Select Case Err.Number

Case 3021

    rst.Close: Exit Sub

Case Else

    MsgBox "error - " & Err.Number & ", " & Err.Description
    Resume Exit_Sub

End Select
Random Solutions  
 
programming4us programming4us