PC Review


Reply
Thread Tools Rate Thread

Advanced Filter/Sort within VBA code

 
 
=?Utf-8?B?UGF1bCBELiBTaW1vbg==?=
Guest
Posts: n/a
 
      16th Apr 2004
In the On Click event of a command button, I have several lines of code. In the middle of that code, this line open
the Advanced Filter/Sort grid

DoCmd.RunCommand acCmdAdvancedFilterSor

After that line, there are about 15 lines of additional code in the event procedure

Up through that line, the code works perfectly. However, when the user completes the grid and clicks the Apply Filter button in the toolbar, the filter works fine, bu
everything stops because the remainder of the VBA code does not run

How can I get the code to continue after the user clicks the Apply Filter button?
 
Reply With Quote
 
 
 
 
Bryan Reich [MSFT]
Guest
Posts: n/a
 
      19th Apr 2004
Post the code for people to take a look at, it will increase the chance that
we can help.
Just a wild guess, but is it possible the code after the RunCommand call is
executing while the filter dialog is up? Is it actually stopping on the
RunCommand call and doing the operation modally?
--
Bryan Reich
Microsoft Office
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"Paul D. Simon" <(E-Mail Removed)> wrote in message
news:1DCE5938-77EE-4F91-90AD-(E-Mail Removed)...
> In the On Click event of a command button, I have several lines of code.

In the middle of that code, this line opens
> the Advanced Filter/Sort grid:
>
> DoCmd.RunCommand acCmdAdvancedFilterSort
>
> After that line, there are about 15 lines of additional code in the event

procedure.
>
> Up through that line, the code works perfectly. However, when the user

completes the grid and clicks the Apply Filter button in the toolbar, the
filter works fine, but
> everything stops because the remainder of the VBA code does not run.
>
> How can I get the code to continue after the user clicks the Apply Filter

button?


 
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
Problem with advanced filter sort window Julia B Microsoft Access VBA Modules 0 30th Nov 2009 01:19 PM
How prevent Advanced Filter Sort from self-clearing on Form? MHenry Microsoft Access Forms 0 1st Jul 2006 12:54 AM
Advanced filter/sort in MS access =?Utf-8?B?RGViIFRlY2g=?= Microsoft Access VBA Modules 2 4th Jun 2006 06:11 PM
Advanced filter to sort on secondary column =?Utf-8?B?Umlja0I=?= Microsoft Access 1 22nd Apr 2006 04:29 AM
Advanced Filter/Sort Question Jfs Microsoft Access 1 31st Dec 2003 02:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:11 PM.