B
Biggles
I know this should be easy, and I might have examples somewhere myself.
However, it is late (after golf even) and I want to go to bed and have the
Magic MVP Pixies out there answer my question while I sleep.
I have a subform with a value, and I want to pass that value onto a form to
be opened. Here is the code for the button:
Private Sub Command24_Click()
On Error GoTo Err_Command24_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stARGS As String
stARGS = Me!frmPROJECTENTRY!txtPROJECTID
stDocName = "sfrmproj_budgeting"
DoCmd.OpenForm stDocName, , , , , , stARGS
Exit_Command24_Click:
Exit Sub
Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command24_Click
Okey? Then, how do I make the field in the form that I am opening use the
openargs (assuming that part is correct).
I have set the Form On Open event to ME.TXTPROJECTID = ME.OPENARGS and was
told I cannot assign the value of that object.
I have set the default value to me.openargs, me!openargs. I throw up my
arms in exasperation (and forget how to spell when frustrated) and beg for
help.
Help!
However, it is late (after golf even) and I want to go to bed and have the
Magic MVP Pixies out there answer my question while I sleep.
I have a subform with a value, and I want to pass that value onto a form to
be opened. Here is the code for the button:
Private Sub Command24_Click()
On Error GoTo Err_Command24_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim stARGS As String
stARGS = Me!frmPROJECTENTRY!txtPROJECTID
stDocName = "sfrmproj_budgeting"
DoCmd.OpenForm stDocName, , , , , , stARGS
Exit_Command24_Click:
Exit Sub
Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command24_Click
Okey? Then, how do I make the field in the form that I am opening use the
openargs (assuming that part is correct).
I have set the Form On Open event to ME.TXTPROJECTID = ME.OPENARGS and was
told I cannot assign the value of that object.
I have set the default value to me.openargs, me!openargs. I throw up my
arms in exasperation (and forget how to spell when frustrated) and beg for
help.
Help!