Cowboy_BeBa
Registered User.
- Local time
- Today, 17:33
- Joined
- Nov 30, 2010
- Messages
- 188
hi everyone
so far i havent worked out all the details but what i need to do is find a way to automatically copy data from an access query to a sheet in excel
at the end of every month we record financial data from our database into an excel sheet for our accountants. im still designing the query to format the data exactly the way we need it, which is why im not too clear on all the details (have a meeting with the accountants on wednesday to confirm everything, but im hoping to get most of the function written by then at least)
Ive already got the path\filename and worksheet name stored in variables (excelFile and workSheet respectively) and ive worked out a way to store the row number (in a variable called simply rowNum), i just need to add one record to that specific row, from columns B to I) and for now lets just assume the query would be qryFinancialData
am hoping theres a simple way to export the data, ill be formatting the query so that the first field in the query will go into column B, second field will be C, third field will be D, etc.
is there a quick way to open the file, add the data to the right columns/row and close/save the excel file, all through VBA?
so far i havent worked out all the details but what i need to do is find a way to automatically copy data from an access query to a sheet in excel
at the end of every month we record financial data from our database into an excel sheet for our accountants. im still designing the query to format the data exactly the way we need it, which is why im not too clear on all the details (have a meeting with the accountants on wednesday to confirm everything, but im hoping to get most of the function written by then at least)
Ive already got the path\filename and worksheet name stored in variables (excelFile and workSheet respectively) and ive worked out a way to store the row number (in a variable called simply rowNum), i just need to add one record to that specific row, from columns B to I) and for now lets just assume the query would be qryFinancialData
am hoping theres a simple way to export the data, ill be formatting the query so that the first field in the query will go into column B, second field will be C, third field will be D, etc.
is there a quick way to open the file, add the data to the right columns/row and close/save the excel file, all through VBA?