I have a table: Field Name = ClassReasonID, Data Type = Number, List Box, Data source is another table.
The list box field works fine in the form. The data in the query looks fine.
I'm trying to write an e-mail but when I reference the ClassReasonID I get a "Type Mismatch" error.
I tried referencing ClassReasonID.value but get the same error
With a single value field I have no problem but the multi value is giving me fits
__________________________
DoCmd.SendObject acSendNoObject, , acFormatTXT, Me.SubjectEmail, , , "Classification Update", Me.Grade & " " & StrConv(Left([RName], InStr([RName], ",") - 1), 3) & ", " & _
vbCr & vbCr & "We recently received and processed the following classification update from your unit:" & vbCr & vbCr & _
" Individual: " & Me.Grade & " " & Me.RName & vbCr & _
" Classification Update: " & Me.ClassReasonID & vbCr & _
" Date Updated: " & Format([DateUpdated], "dd mmm yy") & vbCr & vbCr & _
"Please let us know if you have any questions or concerns." & vbCr & vbCr & _
"vr" & vbCr & vbCr & vbCr & _
[TFirstName] & " " & [TLastName] & ", " & [TechTitle] & vbCr & _
[Position] & vbCr & _
[TechPhone], True
The list box field works fine in the form. The data in the query looks fine.
I'm trying to write an e-mail but when I reference the ClassReasonID I get a "Type Mismatch" error.
I tried referencing ClassReasonID.value but get the same error
With a single value field I have no problem but the multi value is giving me fits
__________________________
DoCmd.SendObject acSendNoObject, , acFormatTXT, Me.SubjectEmail, , , "Classification Update", Me.Grade & " " & StrConv(Left([RName], InStr([RName], ",") - 1), 3) & ", " & _
vbCr & vbCr & "We recently received and processed the following classification update from your unit:" & vbCr & vbCr & _
" Individual: " & Me.Grade & " " & Me.RName & vbCr & _
" Classification Update: " & Me.ClassReasonID & vbCr & _
" Date Updated: " & Format([DateUpdated], "dd mmm yy") & vbCr & vbCr & _
"Please let us know if you have any questions or concerns." & vbCr & vbCr & _
"vr" & vbCr & vbCr & vbCr & _
[TFirstName] & " " & [TLastName] & ", " & [TechTitle] & vbCr & _
[Position] & vbCr & _
[TechPhone], True