Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email address blank

Status
Not open for further replies.

smartglass

IS-IT--Management
Mar 14, 2006
33
0
0
GB
Hi:
Still using a variant of the magnificent thread401-249399 to email reports, I populate the email address with field data. What I am trying to do now is warn the emailer when the field is blank; along the lines of "If strRcp is blank then (message or report) else send"...but I am not getting very far.
Has anybody come across a solution to this ?
Thanks in advance!
 
I apologise: I have fixed it. Because it was a string, then I used the Len to give me a number, then read from the number as follows:
count = Len(stRcp)
if count >1 then....
else
ImpRep.CloseReport
Set ImpRep = Nothing
MsgBox "There is no email address!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top