Hello everyone.....
I have a "Requisition for buying parts" that prints as a report.
The query asks you for the truck number, then your initials , then the
vendor and last who requested the parts. On the form there is a Checkbox
which needs to be checked "manually" (thats fine) and it will only print
those orders which have been checked off.
Here's what I'd like it to do...in addition to the above.. I'd like to give the user an option to print it or email it as an attachment with a yes or no command button. My SQL code below is set to only print the order.
I've searched the site...and tried some code snippets...but to no avail.
it must be me.... I'm not an expert....
Can someone lend a hand.....
Thanks JZ
Testkitt2
I have a "Requisition for buying parts" that prints as a report.
The query asks you for the truck number, then your initials , then the
vendor and last who requested the parts. On the form there is a Checkbox
which needs to be checked "manually" (thats fine) and it will only print
those orders which have been checked off.
Here's what I'd like it to do...in addition to the above.. I'd like to give the user an option to print it or email it as an attachment with a yes or no command button. My SQL code below is set to only print the order.
I've searched the site...and tried some code snippets...but to no avail.
it must be me.... I'm not an expert....
Can someone lend a hand.....
Thanks JZ
Code:
SELECT Unit.Truck, Unit.[Vin #], Unit.Year, Unit.Make, Unit.Model, PartsDescription.DateLock, PartsDescription.Qty, PartsDescription.[Part No], PartsDescription.[Print Order], PartsDescription.Description, PartsDescription.Technician, PartsDescription.[Truck Status], PartsDescription.Comments, PartsDescription.Quotes, [Qty]*[Quotes] AS TPrice, tbVendor.[tbVendor Name], tbVendor.Address, tbVendor.Tel, tbVendor.Account, PartsDescription.Index
FROM tbVendor, Unit INNER JOIN PartsDescription ON Unit.Truck = PartsDescription.Truck
WHERE (((Unit.Truck)=[Enter Equipment or Stock]) AND ((PartsDescription.[Print Order])=Yes) AND ((PartsDescription.Technician)=[' Enter your first initial and last name to print requisition ']) AND ((tbVendor.[tbVendor Name]) Like [Enter The First Few Characters of the Vendor: ] & "*"));
Testkitt2