toolman2
Technical User
- Jul 31, 2001
- 12
Hi all,
Ok....I've looked through all the postings til blue in the face and cannot figure out how to do what I want to do.
I have a form to which I want to add a command button that will prompt the user for two dialog boxes asking for input that will result in:
a) printing a (not necessarily the same) report based on the input to the dialog boxes.
b) printing an associated (text) document where the name of the file is the same as a value in a certain field in my report.
For ex:
User clicks on button and is prompted to enter the machine number, hits enter and then is prompted for the toolkit number, hits enter. A report will be printed that is designed for that particular machine and a document whose file name (ex: 0001.ncs) is the same as the value in a field (Tl Number) where another field (Prefix) equals "TP".
***Print document where prefix = "TP" and Tl Number = document's file name***
I know how to create the command button with the prompts and that will print the report and then open up a document outside of access, but here's my problem. I don't know how (or where) to enter code that will relate the linking (Tl Number) field's value to the document file so that it will know which document to print.
I don't need to see the report or the document, just print them out. I'm pretty code stupid, just learning (slowly) on my own and would appreciate any help.
Thanks,
Kevin
Ok....I've looked through all the postings til blue in the face and cannot figure out how to do what I want to do.
I have a form to which I want to add a command button that will prompt the user for two dialog boxes asking for input that will result in:
a) printing a (not necessarily the same) report based on the input to the dialog boxes.
b) printing an associated (text) document where the name of the file is the same as a value in a certain field in my report.
For ex:
User clicks on button and is prompted to enter the machine number, hits enter and then is prompted for the toolkit number, hits enter. A report will be printed that is designed for that particular machine and a document whose file name (ex: 0001.ncs) is the same as the value in a field (Tl Number) where another field (Prefix) equals "TP".
***Print document where prefix = "TP" and Tl Number = document's file name***
I know how to create the command button with the prompts and that will print the report and then open up a document outside of access, but here's my problem. I don't know how (or where) to enter code that will relate the linking (Tl Number) field's value to the document file so that it will know which document to print.
I don't need to see the report or the document, just print them out. I'm pretty code stupid, just learning (slowly) on my own and would appreciate any help.
Thanks,
Kevin