A
AJ
Please see below code.
When each of the fields from my form associated with the "msgstring" code
has data entered, the Send works perfect. However, if any of the fields has
nothing (=0) then it does not work at all. Can anyone tell me why?
msgstring1 = IIf(Me.Combo464 = 0, "", Me.Combo464.Column(1) & ";")
msgstring2 = IIf(Me.Assigned_To_2 = 0, ";", Me.Assigned_To_2.Column(1) & ";")
msgstring3 = IIf(Me.Assigned_To_3 = 0, ";", Me.Assigned_To_3.Column(1) & ";")
msgstring4 = IIf(Me.Assigned_To_4 = 0, "", Me.Assigned_To_4.Column(1))
DoCmd.SendObject acSendNoObject, , , msgstring1 & msgstring2 & msgstring3 &
msgstring4, , , , , , False
End Sub
Thank you!!!
When each of the fields from my form associated with the "msgstring" code
has data entered, the Send works perfect. However, if any of the fields has
nothing (=0) then it does not work at all. Can anyone tell me why?
msgstring1 = IIf(Me.Combo464 = 0, "", Me.Combo464.Column(1) & ";")
msgstring2 = IIf(Me.Assigned_To_2 = 0, ";", Me.Assigned_To_2.Column(1) & ";")
msgstring3 = IIf(Me.Assigned_To_3 = 0, ";", Me.Assigned_To_3.Column(1) & ";")
msgstring4 = IIf(Me.Assigned_To_4 = 0, "", Me.Assigned_To_4.Column(1))
DoCmd.SendObject acSendNoObject, , , msgstring1 & msgstring2 & msgstring3 &
msgstring4, , , , , , False
End Sub
Thank you!!!