H
hobbit2612 via AccessMonster.com
Hi I wonder whether someone may be able to help me please.
I am trying to add some code (as seen in the third line below) to a 'Close
Button' to force it to save the records before I use a main form.
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
Forms!frmBidDetails.Requery
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
But all I get is a message to say that the form cannot be found even though I
know the name of the form in the code is correct.
Can anyone help me pleaase?
Many thanks
I am trying to add some code (as seen in the third line below) to a 'Close
Button' to force it to save the records before I use a main form.
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
Forms!frmBidDetails.Requery
DoCmd.Close
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
But all I get is a message to say that the form cannot be found even though I
know the name of the form in the code is correct.
Can anyone help me pleaase?
Many thanks