FILTER QUERY results on a FORM?

Reply

Join Date: Dec 2003
Posts: 1
Reputation: Joe Locke is an unknown quantity at this point 
Solved Threads: 0
Joe Locke Joe Locke is offline Offline
Newbie Poster

FILTER QUERY results on a FORM?

 
0
  #1
May 3rd, 2007
I hope this is the correct forum to post this.

Wondering if anyone could help...


On a form a continuous record list is displayed as results of running a QUERY.

While this QUERY is displayed, I’d like to filter it.



QUERY would display on a FORM showing: (customer: being the field name and jobdate: being the other field name) Well, control source since it's on a form?

customer jobdate

acne 1/1/07
acne 1/2/07
ace 1/3/07
acne 1/4/07
ace 1/4/07

On this form, a combo box will display the choices ACNE and ALL
From this FORM the QUERY is displayed on, I'd like to FILTER the form to toggle between showing ALL (as listed above) and JUST showing ACNE - without closing the form.

customer jobdate

acne 1/1/07
acne 1/2/07
acne 1/4/07



I have a combo box on the form that gives me 2 options to filter...either display ALL records the QUERY displayed originally or just show me records of customer “ACNE”

I'm hoping someone could provide the code I can place in the AfterUpdate (or AfterChange) portion...
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 20
Reputation: shasur is an unknown quantity at this point 
Solved Threads: 1
shasur shasur is offline Offline
Newbie Poster

Re: FILTER QUERY results on a FORM?

 
0
  #2
May 6th, 2007
You can use the filter function to get the 'acne' array alone

' If you have the existing contents in arOriginal then

arFiltered = Filter(arOriginal, "acne")

should give you the results containing 'acne' alone in arFiltered array
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC