belovedcej
Programmer
Okay - I have done this successfully before but today I'm hitting my head up against a wall. . .
After editing a record in my frmEventsEdit form, I want to restore frmEvents to visibility and return to the same record, if it was a record edit, not a record add.
I'm getting the message that there is an error in my Find record argument. So my final attempt was to set the pertinent field visible, focus on it, and then do my find.
Still no go - I have an error.
Here's the portion that I'm referring to (my intEventID is declared and initialized earlier in the sub.)
After editing a record in my frmEventsEdit form, I want to restore frmEvents to visibility and return to the same record, if it was a record edit, not a record add.
I'm getting the message that there is an error in my Find record argument. So my final attempt was to set the pertinent field visible, focus on it, and then do my find.
Still no go - I have an error.
Here's the portion that I'm referring to (my intEventID is declared and initialized earlier in the sub.)
Code:
Form_frmEvents.txtEventID.Visible = True
Form_frmEvents.txtEventID.SetFocus
If intEventID > 0 Then
DoCmd.FindRecord intEventID, , , , , acCurrent
End If
Form_frmEvents.txtEventID.Visible = False
DoCmd.Close acForm, "frmEventsEdit"