Connecting Tech Pros Worldwide Help | Site Map

Button Sequence?

  #1  
Old November 13th, 2005, 09:58 AM
Randy
Guest
 
Posts: n/a
I can set up a button to run an OpenForm with a query through a macro
and everything runs fine until I click on the button again to do
another query from the same button. It does not work the second time.
If I click on Remove Filter all the records show again. Then if I
click on the button again the first set of records will come up from
the first time I clicked the button.

What do I need to correct?

  #2  
Old November 13th, 2005, 09:58 AM
Mark
Guest
 
Posts: n/a

re: Button Sequence?


you could add "docmd.showallrecords" before the code on your command button
so that it removes any filter before it applies a new one.


"Randy" <ranmcc@msn.com> wrote in message
news:1113596620.755216.14000@o13g2000cwo.googlegro ups.com...
I can set up a button to run an OpenForm with a query through a macro
and everything runs fine until I click on the button again to do
another query from the same button. It does not work the second time.
If I click on Remove Filter all the records show again. Then if I
click on the button again the first set of records will come up from
the first time I clicked the button.

What do I need to correct?


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data being lost when screen sequence is repeated rmurgia answers 4 May 22nd, 2008 01:05 PM
automatically post data & click buttons on sequence of web pages with AxWebBrowser sophocles the wise answers 0 November 22nd, 2005 02:19 PM
TabPage Sequence Problem Sumit answers 4 November 16th, 2005 09:23 PM
automatically post data & click buttons on sequence of web pages with AxWebBrowser sophocles the wise answers 0 July 21st, 2005 06:29 PM