Trouble w/ OpenArgs

P

Pamela

I have a command button on FormA to open FormB. The OpenArgs property for
this button on FormA is set to Me!AssignmentID. On the OnLoad event of
FormB, I have Me.AssignmentID = Me.OpenArgs. I am using this same procedure
in other places of my db and it works perfectly, but in this instance, it
doesn't carry the AssignmentID across...any ideas? Are there any other
underlying requirements to make this work? Thanks so much!
 
R

Rick Brandt

Pamela said:
I have a command button on FormA to open FormB. The OpenArgs
property for this button on FormA is set to Me!AssignmentID. On the
OnLoad event of FormB, I have Me.AssignmentID = Me.OpenArgs. I am
using this same procedure in other places of my db and it works
perfectly, but in this instance, it doesn't carry the AssignmentID
across...any ideas? Are there any other underlying requirements to
make this work? Thanks so much!

Is the record on formA a new record? If it is then you likely need to save
that record before opening FormB.
 
P

Pamela

Thanks for your reply. It is a new record, but I have code in a previous
field to save. The error I'm getting is: The expression in argument 6 has
an invalid value. I've reviewed all the data entry and it is correct -- any
ideas how I can track down this "argument 6?" I've never run into anything
like that before. Thanks!!
 
R

Rick Brandt

Pamela said:
Thanks for your reply. It is a new record, but I have code in a
previous field to save. The error I'm getting is: The expression in
argument 6 has an invalid value. I've reviewed all the data entry
and it is correct -- any ideas how I can track down this "argument
6?" I've never run into anything like that before. Thanks!!

Okay, your original post said nothing about getting an error. What code is
producing the error? Code in FormA or code in FormB? What event and what
is the line of code?
 

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