SteveL13
asked on
Send query result to a user's computer as an Excel file but allow them to select the location and name the file
I want to, with a command button on a form, send a query result to a user's computer as an Excel file but allow them to select the location it is to go to on their computer and name the file.
How can I do this? Right now I have:
DoCmd.TransferSpreadsheet acExport, 10, "qryShipments", Environ("userprofile") & "\Desktop\Inventory.xlsx", True
But that sends it to their desktop by default and replaces the file that was there already if there was one.
How can I do this? Right now I have:
DoCmd.TransferSpreadsheet acExport, 10, "qryShipments", Environ("userprofile") & "\Desktop\Inventory.xlsx",
But that sends it to their desktop by default and replaces the file that was there already if there was one.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How are you going to send the file to the other user's computer? By email, or what?