Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run Existing Access Query From Excel


Sinced you want to run the query from a button you need to record a
macro while creating the query. The connect a button to the macro.

You either need to have two buttons or put the two queries into a
single macro. The 2nd macro has to be modified so the start location of
the data is put at the end of the 1st query.

Other things that need to be done is to remove the old data before
running the new query and set the query not to automatically update (you
will update using the macro).

Post the recorded macros and we can modify them as necessary. You
possible combine the tow queries into one. the query contains the
"Command Text" which is normally called an SQL. the filtering you are
performing to return only certain data is the "WHERE" portion of the
query. the SQL can be modified to put two "Where" phrases into a single
SQL statement which return all the data in one query instead of two
queries.


--
joel
------------------------------------------------------------------------
joel's Profile: http://www.thecodecage.com/forumz/member.php?userid=229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=151888

Microsoft Office Help

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
Excel Programmatic (Existing) Workbook Access in .NET 2.0 JumpingMattFlash Excel Programming 0 April 25th 08 09:20 AM
Can I use MS Query in Excel like an Append Query in Access Sam Wardill Excel Discussion (Misc queries) 0 April 11th 06 02:41 PM
Run Access query from Excel, input value to query being value in c Nagesh Excel Programming 3 December 22nd 05 02:00 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 03:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"