J
Judy Ward
I want to click a button on one form (frmDSSF), open another form
(frmDSSF_Subcontractor) and pass a value to it (DSSF_ID).
I have used a Debug.Print to make sure the Me.DSSF_ID has a value.
I can open the form using: DoCmd.OpenForm "frmDSSF_Subcontractor"
In the click event of the button on frmDSSF I am I have tried:
DoCmd.OpenForm "frmDSSF_Subcontractor", OpenArgs:=Me.DSSF_ID
DoCmd.OpenForm "frmDSSF_Subcontractor", , , , , , Me.DSSF_ID
I get Run-time error '2467':
The expression you entered refers to an object that is closed or doesn't
exist.
The object does exist. The form is closed. I thought DoCmd.OpenForm was
supposed to open it!
Any help with this would be appreciated.
Thank you,
Judy
(frmDSSF_Subcontractor) and pass a value to it (DSSF_ID).
I have used a Debug.Print to make sure the Me.DSSF_ID has a value.
I can open the form using: DoCmd.OpenForm "frmDSSF_Subcontractor"
In the click event of the button on frmDSSF I am I have tried:
DoCmd.OpenForm "frmDSSF_Subcontractor", OpenArgs:=Me.DSSF_ID
DoCmd.OpenForm "frmDSSF_Subcontractor", , , , , , Me.DSSF_ID
I get Run-time error '2467':
The expression you entered refers to an object that is closed or doesn't
exist.
The object does exist. The form is closed. I thought DoCmd.OpenForm was
supposed to open it!
Any help with this would be appreciated.
Thank you,
Judy