Need to edge out the competition for your dream job? Train for certifications today.
docmd.OpenForm "frmSearch", acNormal, , , , , me.name
Open in new window
Private Sub Form_Close
is currentproject.allforms(me.OpenArgs).isloaded then
Forms(me.OpenArgs).visible = true
docmd.openform me.OpenArgs, acviewnormal
This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.
Private Sub Form_Close()
On Error GoTo ErrProc
If frm.Dirty Then
If IsNull(frm.OpenArgs) Then
Select Case Err.Number
Case 2102 'bad open args form name
Case 2455 'happens for A2007 when unbound form references the Dirty property
MsgBox Err.Number & "--" & Err.Description
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.