943,965 Members | Top Members by Rank

Ad:
May 3rd, 2007
0

FILTER QUERY results on a FORM?

Expand Post »
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...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Joe Locke is offline Offline
1 posts
since Dec 2003
May 6th, 2007
0

Re: FILTER QUERY results on a FORM?

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
Reputation Points: 10
Solved Threads: 1
Newbie Poster
shasur is offline Offline
20 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: serial to parallel conversion
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Multi lingual support for Crystal reports





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC