Sending:
DoCmd.OpenReport "rptResults", acViewPreview, , , acDialog, strPRC = "Me.cbo1ID|Me.cbo2ID|Me.cbo3ID"
Open event:
Private Sub Report_Open(Cancel As Integer)
varSplitString = Split([strPRC], "|")
Me.[EngagementID].Value = varSplitString(0)
Me.[LocationID].Value = varSplitString(1)
Me.[ProviderID].Value = varSplitString(2)
End Sub
Error: "Access cannot find the field "|1" referenced in your expression."
The VarSplitString line is highlighted in DeBug.
Everything I hover over "has no value" except the right of the equals signs in the bottom 3 lines, which have "type mismatch"?
DoCmd.OpenReport "rptResults", acViewPreview, , , acDialog, strPRC = "Me.cbo1ID|Me.cbo2ID|Me.cbo3ID"
Open event:
Private Sub Report_Open(Cancel As Integer)
varSplitString = Split([strPRC], "|")
Me.[EngagementID].Value = varSplitString(0)
Me.[LocationID].Value = varSplitString(1)
Me.[ProviderID].Value = varSplitString(2)
End Sub
Error: "Access cannot find the field "|1" referenced in your expression."
The VarSplitString line is highlighted in DeBug.
Everything I hover over "has no value" except the right of the equals signs in the bottom 3 lines, which have "type mismatch"?