PC Review


Reply
Thread Tools Rate Thread

Adding filter to query

 
 
Ken Warthen
Guest
Posts: n/a
 
      16th Apr 2010
I'm trying to export to excel the filtered results of an underlying query on
a split form. In the on click event of a command button I create a querydef
and then use transfer spreadsheet to create an Excel workbook. The code
creates the spreadsheet, but it includes all the records. I need to make it
create only the filtered records. I've tried several methods, but can't seem
to figure this out. Any help will be greatly appreciated.

TIA,

Ken
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      16th Apr 2010
I just answered a question just like this yesterday. I got a green check for
it! Maybe I will get another today...


Here's one way:
http://www.datapigtechnologies.com/AccessMain.htm

Go to the bottom of the page and download this file: 'DataPig Access
Explosion'

Here's a video on how it works:
http://www.datapigtechnologies.com/f...explosion.html


Another GREAT resource:
http://www.accessmvp.com/KDSnell/EXCEL_Export.htm


--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Ken Warthen" wrote:

> I'm trying to export to excel the filtered results of an underlying query on
> a split form. In the on click event of a command button I create a querydef
> and then use transfer spreadsheet to create an Excel workbook. The code
> creates the spreadsheet, but it includes all the records. I need to make it
> create only the filtered records. I've tried several methods, but can't seem
> to figure this out. Any help will be greatly appreciated.
>
> TIA,
>
> Ken

 
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
Using Filter condition on Select Query within a Crosstab Query in Code Jeff Simcock Microsoft Access Form Coding 2 1st Mar 2006 03:52 AM
Using Filter condition on Select Query within a Crosstab Query in Code Jeff Simcock Microsoft Access VBA Modules 2 1st Mar 2006 03:52 AM
Adding A Filter To A Simple Query =?Utf-8?B?Y2FybA==?= Microsoft Access 1 31st Aug 2005 04:47 PM
Parameter query using combo boxes adding a filter =?Utf-8?B?S2lyayBMZWFkZXI=?= Microsoft Access Getting Started 2 12th Jul 2005 09:26 PM
Filter and query saved after filter by form =?Utf-8?B?dWJ1?= Microsoft Access Queries 4 24th Oct 2004 09:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:22 AM.