I'm stumped!
Code follows:
strBody = strBody & "(W) " & Left$(Work_Phone, 3) & "-" & Mid$(Work_Phone, 4, 3) & "-" & Right$(Work_Phone, 4) & Chr(13)
strBody = strBody & "(C) " & Left$(Cell_Phone, 3) & "-" & Mid$(Cell_Phone, 4, 3) & "-" & Right$(Cell_Phone, 4) & Chr(13) & Chr(13)
strBody = strBody & "Work Address" & Chr(13)
strBody = strBody & WAddress & Chr(13) & WCity & ", " & WState & " " & WZip & Chr(13) & Chr(13)
strBody = strBody & AKO_eMail & Chr(13)
This is producing data from a client onto an e-mail message (sendObject). When there is no Phone Number for Home, work or Cell, the e-mail won't be produced. But it works if there isn't a work address. I tried Nz Function for the phone Numbers but I'm stuck.
I appreciate your help.
-Michael
Code follows:
strBody = strBody & "(W) " & Left$(Work_Phone, 3) & "-" & Mid$(Work_Phone, 4, 3) & "-" & Right$(Work_Phone, 4) & Chr(13)
strBody = strBody & "(C) " & Left$(Cell_Phone, 3) & "-" & Mid$(Cell_Phone, 4, 3) & "-" & Right$(Cell_Phone, 4) & Chr(13) & Chr(13)
strBody = strBody & "Work Address" & Chr(13)
strBody = strBody & WAddress & Chr(13) & WCity & ", " & WState & " " & WZip & Chr(13) & Chr(13)
strBody = strBody & AKO_eMail & Chr(13)
This is producing data from a client onto an e-mail message (sendObject). When there is no Phone Number for Home, work or Cell, the e-mail won't be produced. But it works if there isn't a work address. I tried Nz Function for the phone Numbers but I'm stuck.
I appreciate your help.
-Michael