Hi,
I tried this. But wherever "Me.openArgs" i.e. to access the form 'frmACAddEditAssignedCounsel'. It is giving error 2450.
Codes are not same for all forms, they r different.
form1 to form2 ,then form3. In form3, when we click any of the button(that access variables from...
Hi,
the code is
Private Sub cmdCancel_Click()
'Test
MsgBox (Me.OpenArgs)
If Left(Me.OpenArgs, 12) = "frmACAddEdit" Then
SelectIt Forms(Me.OpenArgs)!txtAttorneySSN
End If
Forms(Me.OpenArgs).Visible = True
DoCmd.Close acForm, Me.Name
End Sub
Here Me.OpenArgs =...
Thanks Roy,
The values(form name) I'm getting in openargs is in that database. But still I'm getting error. I hope this form may be closed anywhereelse.
Error:
Run-time error'2450':
Database can't find the form'...' referred to in a macro expression or visual basic code.
*the form you...
Hi Roy,
Thanks for your response. But still I'm getting the same error. Can you help me fix it. It says it couldn't find that form in the database. But that form is in the database.
Thanks,
Hi,
When I click cancel button in the report, i got the following msg "Run-time error 2450: can't find the form ..referred to in a macro expression or visual basic code".
My code:
Private Sub cmdCancel_Click()
If Left(Me.OpenArgs, 12) = "frmACAddEdit" Then
SelectIt...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.