473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Openargs in A2003

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
3 2371
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: nic | last post by:
Hi am having difficulty understanding why the following is not working. Dim TempID As Integer Set TempID = Me.OpenArgs Knowing that OpenArgs is a string I then changed the declaration of...
11
by: Susan Bricker | last post by:
Hi. I am trying to open a form using 'openargs' parameter of the docmd.openform action. The problem is that I would like to pass the form some character (string) and integer data. My plan was to...
3
by: Jim Evans | last post by:
Using code and suggestions from an earkier thread in this group, I have created the following cond for the open event of a form I am opening from the button click event of another form. ...
4
by: Barry Edmund Wright | last post by:
Hi All, I am using the code below to assign a form name to a form variable (vFrm). Is there a way to assign the Openargs string directly to vFrm, i.e. vFrm = Openargs ? Private Sub...
2
by: shumaker | last post by:
I think the problem lies in my understanding(or misunderstanding) of the scope of references. 'Code from button click event on first form: Private Sub Ok_Click() Dim strRecordSource As String...
3
by: Tanis | last post by:
How do you pass more than one argument using OpenArgs?
3
by: dou | last post by:
In searching for a solution to a current problem I ran across a thread from 2005 on the same issue, ( http://www.thescripts.com/forum/thread202473.html ). In that case it appeared that the problem...
7
by: Salad | last post by:
I am converting an application from A97 to A2003. I have 2 tables created by another application as a Foxpro.dbf. The table has no index. The connect string in A97 is FoxPro...
3
by: angi35 | last post by:
I'm having a zero-length string problem... Hoping someone can help. (This is in Access 2000.) In FormA, I have a button that opens FormB with OpenArgs. In FormB, the OpenArgs are translated into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.