How To Create a Microsoft Access Macro (with a query data) to Export Information to Excel (1 Viewer)

Shankar14

New member
Local time
Today, 13:00
Joined
Apr 6, 2022
Messages
7
I am trying to write a macro (command button) in a way that, when I click the command button, underlying data from a query is to be saved in excel form in the "on click" section. Can some one guide me on how to do this ?
1660646994204.png
 

CJ_London

Super Moderator
Staff member
Local time
Today, 13:00
Joined
Feb 19, 2013
Messages
16,601
Google ‘vba transferspreadsheet’ for one method

if you need a more detailed response you will need to provide more detail such as the name of your query/form/subform, whether filters have been applied to the form, whether the save is to replace an existing spreadsheet or create a new one etc
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:00
Joined
May 7, 2009
Messages
19,227
you can Create a "form" for you 2 date parameters.
see this demo.
 

Attachments

  • DateParam.accdb
    552 KB · Views: 156

Users who are viewing this thread

Top Bottom