When I tired the brackets Access could not find the report. however, there must have been an extra space as genomon was saying because I retyped the whole sendObject expression and sent it. No errors! Thank you very much to everyone.
Good Morning all you brillant programmers out there! I would appreciate another pair of eyes on this Sub. The process emails a report to a list of email address from a table. The report iterates through the set in the table however when it finishes before closing out to the main Form it errors...
I took the suggestion of taking the math out of the query and running a report with a combination of the math applied in an nz function on the both the summary of the sum of quantity and grand total and an iif argument.
=iif(nz([Quantity])="","0",Sum([Quantity])) -works like a dream.
Thank you...
This is a revision to the Parameters query Null Error Trouble Thread.
I changed the query and am summing the quantity in the report only. The result of the report is still returning an error when the query does not produce a value for the Brand Name field when looking between the two specified...
Jim,
I would like the query to find all instances of the drug used between two specified dates. If the query produces no instance of the drug specified then it should return a 0 in the sumofquantity
I am summing the quantity in query and then summing the sumofquantity in the report because some...
Darrylle
First, thanks for your reply! This worked great on the sumofquantity field -it did return a 0 for the null value however, the results for the sumofquantity that isnotnull is now summing incorrectly. A result for drug with 27 total is now showing as 2 and the sumofsumofquantity for the...
I'm using a form to run a 2 parameters query on pharmacy data
The query is setup like this:
BrandName Generic Name Strength Quantity
[Forms]![F Drug Used within Dates]![BrandName] on the brand name(combobox) field
and
Between [Forms]![F Drug Used within Dates]![StartDate] And...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.