By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,779 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,779 IT Pros & Developers. It's quick & easy.

Openargs in A2003

P: n/a
I am almost certain that when I opened a form in A97 that openargs was
available in that form's class module for the whole time the form was open.

Apparantly this is not the case in A2003. From some development I've
been doing, it seems that it is only available during the on open event
(and possibly other events such as on load, but I'm not sure). Once the
form is loaded (in this cae a popup property = true), openargs goes
back to null.

I know this is not the result of any untrapped errors - I've stepped
through the whole process and once the form has been opened,
?forms!frmName.openargs on the debug window gives me null. Further,
form level variables are still working and not reset (which I assume
still happens with untrapped errors in A2003?) and when I assign
openargs to a form level variable at the beginning fo the on open event,
the form level variable does not get reset.

To crown it all, there is no online nor off line help on openargs.

Is my diagnosis (openargs goes to null after form is opened) correct, do
you think?
--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Tim Marshall" <TI****@antarctic.flowerpots> wrote in message
news:cl**********@coranto.ucs.mun.ca...
Is my diagnosis (openargs goes to null after form is opened) correct, do
you think?
--
Tim


I just tried with me (Windows2003/Access2003) and
all works ok.
I open Form3 with:
DoCmd.OpenForm "Form3", , , , , , "Bruno"

I have in Form3 a button with:
MsgBox Me.OpenArgs
which gives me Bruno.

I've also full explanation on my Access Help.
My References: VBA, Access, DAO 3.60

I think something went wrong in your Access
installation.

Ciao
Bruno


Nov 13 '05 #2

P: n/a
Although I save my app in A200 format, this should make no difference -
openArgs still exists.

Perhaps there is some other proiblem with this statement?
?forms!frmName.openargs
Try repeated calls to

MsgBox Me.OpenArgs
Darryl Kerkeslager
"Tim Marshall" <TI****@antarctic.flowerpots> wrote: I am almost certain that when I opened a form in A97 that openargs was
available in that form's class module for the whole time the form was open.
Apparantly this is not the case in A2003. From some development I've
been doing, it seems that it is only available during the on open event
(and possibly other events such as on load, but I'm not sure). Once the
form is loaded (in this cae a popup property = true), openargs goes
back to null.

I know this is not the result of any untrapped errors - I've stepped
through the whole process and once the form has been opened,
?forms!frmName.openargs on the debug window gives me null. Further,
form level variables are still working and not reset (which I assume
still happens with untrapped errors in A2003?) and when I assign
openargs to a form level variable at the beginning fo the on open event,
the form level variable does not get reset.

To crown it all, there is no online nor off line help on openargs.

Is my diagnosis (openargs goes to null after form is opened) correct, do
you think?
--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto

Nov 13 '05 #3

P: n/a
Darryl Kerkeslager wrote:
Although I save my app in A200 format, this should make no difference -
openArgs still exists.


Thanks Darryl & Bruno. I wonder if this had something to do with my
form gone missing in another post. Bizarre or what?
--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.