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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

emailing a form

Status
Not open for further replies.

emitecaps

Technical User
Apr 20, 2005
24
GB
Hi,
I have a form that contains order entry items. When a user records the order details they hit a button which sends a confirmation email to the client showing, in the message body, what they have ordered...
Is there a way of only including those fields from the form where the value is greater than zero?
We have many products on our database and it would be easier for the client if they could only view the products they've ordered and also their quanitity.

thanks
Barry
 
Yes you can easily only include those fields from the form where the value is greater than zero?
The solution however is based on the code that mails this form. How is it being done now
 
I'm using the following:-

Dim strTo As String, strSubject As String, strMessage As String

strTo = Me.Email
strSubject = "Download Report
strMessage =


I have a field called JobDescription and one called PersonSpec. If there are no downloads of PersonSpec and one download of JobDescription I'ld like the body of the text to read as follows:

"Job Description 1"
...there would be no mention of PersonSpec

thanks
B

 
And the problem is ?
Have a look at the If instruction.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
well, it's that i'm not sure how to do it!

I can do this if there is just one category...say for the "equal opportunities" box...

If Me.Equal_Opportunities > 0 Then
strMessage = "Equal Opportunities = " & Me.Equal_Opportunities
ElseIf Me.Equal_Opportunities = 0 Then
strMessage = " "
Else
strMessage = " "

but I'm not sure how to add the extra categories...such as "job description"

thanks
Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top