gojets1721
Registered User.
- Local time
- Yesterday, 22:21
- Joined
- Jun 11, 2019
- Messages
- 430
Hi I'm looking for a VBA for a button that when pressed in a form will export a report based on the selected form entry and open a prompt menu to save in a designated file path with a file name.
Essentially the form is a bunch of complaints and the form shows one complaint at a time. I have a report that basically serves as a printable version of each individual complaint. I want a button that will take whatever complaint you're on in the form and drop it into the report, and then export that report to a designated folder. But before doing so, there will be a prompt with a preset name (just the customer's name from the form) in case the user wants to save it elsewhere.
I currently use a macro and it does the job for now. It's just an open report macro with the following condition: "[qryComplaintReport]![ComplaintNumber]=[Forms]![ComplaintDetails]![ComplaintNumber]. This opens the right entry up in the report but it only brings it to a print preview. The user still needs to navigate through access to save it and there's no preset path or name.
Please let me know if I didn't give enough info. Thanks!!
Essentially the form is a bunch of complaints and the form shows one complaint at a time. I have a report that basically serves as a printable version of each individual complaint. I want a button that will take whatever complaint you're on in the form and drop it into the report, and then export that report to a designated folder. But before doing so, there will be a prompt with a preset name (just the customer's name from the form) in case the user wants to save it elsewhere.
I currently use a macro and it does the job for now. It's just an open report macro with the following condition: "[qryComplaintReport]![ComplaintNumber]=[Forms]![ComplaintDetails]![ComplaintNumber]. This opens the right entry up in the report but it only brings it to a print preview. The user still needs to navigate through access to save it and there's no preset path or name.
Please let me know if I didn't give enough info. Thanks!!