J
Judy Ward
I am opening frmDSSF_Subcontractor with OpenArgs (by clicking a button on
another form):
DoCmd.OpenForm "frmDSSF_Subcontractor", WhereCondition:="DSSF_ID=" &
Me.DSSF_ID, OpenArgs:=Me.DSSF_ID
I am checking the value of DSSF_ID before trying to open the form, so that's
not the problem. frmDSSF_Subcontractor opens to the correct record every
time.
In the Form_Load event of frmDSSF_Subcontractor, I am checking that
OpenArgs is not null (because I need to use this value). I put in Debug
statements and watch the Immediate window.
frmDSSF_Subcontractor does not know the value of OpenArgs every time. On
one click to open this form it doesn't. I close the form and immediately
click to open this form again--and this time it knows the value of OpenArgs.
Does anyone have any idea what is going on?
Thank you for your help,
Judy
another form):
DoCmd.OpenForm "frmDSSF_Subcontractor", WhereCondition:="DSSF_ID=" &
Me.DSSF_ID, OpenArgs:=Me.DSSF_ID
I am checking the value of DSSF_ID before trying to open the form, so that's
not the problem. frmDSSF_Subcontractor opens to the correct record every
time.
In the Form_Load event of frmDSSF_Subcontractor, I am checking that
OpenArgs is not null (because I need to use this value). I put in Debug
statements and watch the Immediate window.
frmDSSF_Subcontractor does not know the value of OpenArgs every time. On
one click to open this form it doesn't. I close the form and immediately
click to open this form again--and this time it knows the value of OpenArgs.
Does anyone have any idea what is going on?
Thank you for your help,
Judy