A
Ayo
This line of code is suppose to open another form and use these OpenArgs as
values in some of the controls in the new form.
DoCmd.OpenForm "Invoice by Dates", acNormal, acWindowNormal,
OpenArgs:=Me.txtStartDate.Value & "," & Me.txtEndDate.Value & "," &
Me.cmbVendor.Value & "," & Me.cmbReviewer
I am able to get it to work for the first two Args, i.e.
Me.txtStartDate.Value & "," & Me.txtEndDate.Value but I can't get the other
Args to show on the 2nd form. I was using this codes,
commaOne = InStr(Me.OpenArgs, ",")
commaTwo = InStr(Mid(Me.OpenArgs, commaOne + 1), ",")
commaThree = InStr(Mid(Me.OpenArgs, commaTwo + 1), ",")
but I can't figure out what is wrong.
Thanks for your help.
values in some of the controls in the new form.
DoCmd.OpenForm "Invoice by Dates", acNormal, acWindowNormal,
OpenArgs:=Me.txtStartDate.Value & "," & Me.txtEndDate.Value & "," &
Me.cmbVendor.Value & "," & Me.cmbReviewer
I am able to get it to work for the first two Args, i.e.
Me.txtStartDate.Value & "," & Me.txtEndDate.Value but I can't get the other
Args to show on the 2nd form. I was using this codes,
commaOne = InStr(Me.OpenArgs, ",")
commaTwo = InStr(Mid(Me.OpenArgs, commaOne + 1), ",")
commaThree = InStr(Mid(Me.OpenArgs, commaTwo + 1), ",")
but I can't figure out what is wrong.
Thanks for your help.