Requerying the form that called the current form

G

Guest

Please help Allen (or anyone...)
I am trying to do what Allen suggested...using the openargs argument, but i
cannot get it working:
In my calling form i used:

DoCmd.OpenForm "CalledFormname", acNormal, , "([fac id] =" & [fac id]
& ")", acFormEdit, acWindowNormal, "Callingformname"

and in the 'stop'-button of the called form i use:

If Not IsNull(Me.OpenArgs) Then
' and now do a requery on the calling form
????me.OpenArgs????? .Requery
End If
DoCmd.Close

what should the ?????? be ? and how to replace the Openargs argument in the
OpenForm statement with a variabel containing the name of the callingform?


Please some help.......



:
 
B

Brendan Reynolds

Forms(Me.OpenArgs).Requery

--
Brendan Reynolds


Rli said:
Please help Allen (or anyone...)
I am trying to do what Allen suggested...using the openargs argument, but
i
cannot get it working:
In my calling form i used:

DoCmd.OpenForm "CalledFormname", acNormal, , "([fac id] =" & [fac
id]
& ")", acFormEdit, acWindowNormal, "Callingformname"

and in the 'stop'-button of the called form i use:

If Not IsNull(Me.OpenArgs) Then
' and now do a requery on the calling form
????me.OpenArgs????? .Requery
End If
DoCmd.Close

what should the ?????? be ? and how to replace the Openargs argument in
the
OpenForm statement with a variabel containing the name of the callingform?


Please some help.......



:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top