A
Ayo
Could anyone help me out with these codes. Something is wrong but I can't
figure it out.
This particular line of code is suppose to have 3 OpenArgs for the form
"Invoice by Dates" but only the first two gets included. Me.cmbReviewer.Value
is not included
DoCmd.OpenForm "Invoice by Dates", acNormal, acWindowNormal,
OpenArgs:=Me.txtStartDate.Value & "," & Me.txtEndDate.Value & "," & "," &
Me.cmbReviewer.Value
This snippet of code is suppose to tell me where the first comma, the 2nd
comma and the 3rd comma are in the OpenArgs. I am not sure if I am writing it
correctly.
If IsNull(Me.OpenArgs) = False Then
commaOne = InStr(Me.OpenArgs, ",")
commaTwo = InStr(Mid(Me.OpenArgs, commaOne + 1), ",")
commaThree = InStr(Mid(Me.OpenArgs, commaTwo + 1), ",")
Else
'------ Insert Exit sub here with Msgbox ----------------'
End If
Any help will be greatly appreciated. Thank you.
figure it out.
This particular line of code is suppose to have 3 OpenArgs for the form
"Invoice by Dates" but only the first two gets included. Me.cmbReviewer.Value
is not included
DoCmd.OpenForm "Invoice by Dates", acNormal, acWindowNormal,
OpenArgs:=Me.txtStartDate.Value & "," & Me.txtEndDate.Value & "," & "," &
Me.cmbReviewer.Value
This snippet of code is suppose to tell me where the first comma, the 2nd
comma and the 3rd comma are in the OpenArgs. I am not sure if I am writing it
correctly.
If IsNull(Me.OpenArgs) = False Then
commaOne = InStr(Me.OpenArgs, ",")
commaTwo = InStr(Mid(Me.OpenArgs, commaOne + 1), ",")
commaThree = InStr(Mid(Me.OpenArgs, commaTwo + 1), ",")
Else
'------ Insert Exit sub here with Msgbox ----------------'
End If
Any help will be greatly appreciated. Thank you.