473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Macro: OpenQuery--> OutputTo--> SAVE????

Hi all, my first post on the forum so please be gentle....

I've just started using Macros in Access today, I would like to run a specific query on a daily basis and then have it saved on the LAN in Excel?

So far I have managed to have the query automated (by using task scheduler), Output to Excel from here I need to browse to the LAN and manually save it? I would like to have this all automated?

Im using Microsoft 2003 on Windows XP

Can anybody help?

Any feedback would be much appreciated.

P.S. sorry if the question is'nt formated right
Sep 13 '07 #1
5 1745
Anyone??

Can such a operation be performed?
Sep 13 '07 #2
JConsulting
603 Expert 512MB
Hi all, my first post on the forum so please be gentle....

I've just started using Macros in Access today, I would like to run a specific query on a daily basis and then have it saved on the LAN in Excel?

So far I have managed to have the query automated (by using task scheduler), Output to Excel from here I need to browse to the LAN and manually save it? I would like to have this all automated?

Im using Microsoft 2003 on Windows XP

Can anybody help?

Any feedback would be much appreciated.

P.S. sorry if the question is'nt formated right
It's kind of unclear what part of this you need help with. Seems there are two things you're looking for.

1) you can use the relative path to a network drive/file inside the macro
where it says FileName. Ex: \\myserver\myfolder\myfile.xls

2) you can automate the macro from a shell command similar to this

----------------------------------------------------------------
you want to create a batch file.
open notepad
paste in the shell that applies to your environment
Example.
--------------------------------------
Echo off
"C:\Program Files\Microsoft Office\ART\Office\MSACCESS.exe /User UserName /Pwd Password /Wrkgrp Z:\System.mdw" "Z:\Interface.mde" /X YourMacroHere
-----------------------------------------
the first part...your Access name and arguements. The second part, your DB path and file name. The third part, your macro name.
Now put this in the scheduler.
------------------------------------------------------------

J
Sep 14 '07 #3
Hi J,

Thanks for your reply.

I've managed to proceed a little further. I think i now have the macro saving but i get the following:



This is the bit where i want it automated and saved??

What now?

Thanks in advance!
Sep 14 '07 #4
Anyone???

Starting to give up on this now? ;o(
Sep 14 '07 #5
JConsulting
603 Expert 512MB
Anyone???

Starting to give up on this now? ;o(
check this link from microsoft

http://support.microsoft.com/default.aspx?scid=kb;en-us;896865
Sep 14 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Andrew Dalke | last post by:
Here's a proposed Q&A for the FAQ based on a couple recent threads. Appropriate comments appreciated X.Y: Why doesn't Python have macros like in Lisp or Scheme? Before answering that, a...
2
by: Daniel Lidström | last post by:
Hi, can I somehow assign a macro to be run just before I save my files? I would like to remove trailing spaces and tabs before save. I already have a macro to do so. Version 7.1.3088 --...
5
by: Carl | last post by:
Please can anyone tell me how I can create a macro to save the results of a query as an excel file? The query is called Student List and I would like to save it to "My Documents". We have had...
2
by: Jorge Gallardo | last post by:
Hola a todos. Me gustaria saber si se puede utilizar lo del asunto desde una accion de macro... Si no es asi, como podria convertirlo a modulo para llamarlo desde la macro. Necesito que el...
0
by: jpodesta | last post by:
Hello- I am fairly new to MS Access and would like to use some macros in .xls in an Access Module. I have tried to do this on my own but failed to make it work. I have included the xls macros...
17
by: Russell Shaw | last post by:
Hi, How do i make an if/then/else macro act as a function so that the whole thing looks like the return value? I tried this lame attempt for starters: #define A_FROM_B(b) \ ( \ if(b < 10)...
5
by: Karim | last post by:
Hi, I have alot of constants that I need in regular char and in wchar_t form so instead of writing #define const1 "value1" #define const1wide L"value1"
0
by: modularmix | last post by:
Does anyone know how to run the Excel Macro for two different spreadsheets in parallel. Here is the code that works sequentially. Workbooks.Open Filename:="C:\Documents and...
3
MMcCarthy
by: MMcCarthy | last post by:
Although some users find Macros simple and easy to use, there are some major limitations to using them. Although you can use macros to perform tasks, there is limited control on when and how those...
17
by: cmcsween | last post by:
I am in the process of converting macros in Access 2000 databases to VBA code for use in Access 2007. The macros open reports which are formatted to go to the Adobe PDF printer using the print...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.