PC Review


Reply
Thread Tools Rate Thread

How do I get actions to only run one at a time?

 
 
Kelvin Beaton
Guest
Posts: n/a
 
      23rd Mar 2007
I'm trying to do the following
Open a query that prompts the user for a date range.
Open a form to input a date range.
Export the query results to an Excel spreadsheet....

I can get all these to work, but need them to complete before the next setup
runs.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DoCmd.OpenForm "frm_ReportDateRange", acNormal, "", "", acEdit, acNormal
DoCmd.OpenQuery "qry_ExportReportDate-ExportToExcel", acViewNormal,
acEdit
DoCmd.OutputTo acQuery, "qry_ExportReportDate-ExportToExcel",
"MicrosoftExcelBiff8(*.xls)", "", True, "", 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I'd also rather that the query not show, but run in the background.

Anyone know how to do this, or has an example db that does this?

Thanks

Kelvin


 
Reply With Quote
 
 
 
 
storrboy
Guest
Posts: n/a
 
      23rd Mar 2007

If the form is supposed to supply criteria for the query, then open it
acDialog. When the user clicks ok or continue or whatever, hide the
form (Visible=False). You don't need to open the query when using
OutPutTo. If it gets it's info from the form, have the query reference
it and when OutPutTo runs, the export happens without seeing the
datasheet.

 
Reply With Quote
 
Kelvin Beaton
Guest
Posts: n/a
 
      23rd Mar 2007
thanks I'll give it a try...

Kelvin


"storrboy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> If the form is supposed to supply criteria for the query, then open it
> acDialog. When the user clicks ok or continue or whatever, hide the
> form (Visible=False). You don't need to open the query when using
> OutPutTo. If it gets it's info from the form, have the query reference
> it and when OutPutTo runs, the export happens without seeing the
> datasheet.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Empty base Access 2007. Actions are not executed. Time is wasted C TGeLnadyBRU Microsoft Access 1 7th Nov 2009 08:45 PM
need to show percentage of actions completed on time =?Utf-8?B?RjB6emllYmVhcg==?= Microsoft Access 1 20th Sep 2007 08:54 PM
How do I get actions to only run one at a time? Kelvin Beaton Microsoft Access Macros 2 23rd Mar 2007 07:05 PM
Can't Apply Actions Suggested Actions =?Utf-8?B?Q29hZHk=?= Spyware Discussion 6 10th Dec 2006 05:54 PM
start actions at a specific time Bob Cummings Microsoft C# .NET 2 16th Feb 2004 04:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:06 PM.