Hi all, I have a wierd problem where on the current event of a subform it goes out and sets the value of a Parameter for the main form and then requeries the main form.
However, it jumps into a wierd loop. It keeps going back to the same procedure again and again. Here is my code.
****************************
Private Sub Form_Current()
On Error GoTo Err_Form_Current
Forms!Data_entry!GetCustID = Me.CustID
Forms!Data_entry.Requery
Exit_Form_Current:
Exit Sub
Err_Form_Current:
MsgBox Err.Description
Resume Exit_Form_Current
End Sub
******************
Any help is appreciated
However, it jumps into a wierd loop. It keeps going back to the same procedure again and again. Here is my code.
****************************
Private Sub Form_Current()
On Error GoTo Err_Form_Current
Forms!Data_entry!GetCustID = Me.CustID
Forms!Data_entry.Requery
Exit_Form_Current:
Exit Sub
Err_Form_Current:
MsgBox Err.Description
Resume Exit_Form_Current
End Sub
******************
Any help is appreciated