Continuous Form Question

  • Thread starter Thread starter Bob V
  • Start date Start date
B

Bob V

I have a continuous form that has
HorseID,HorseName,ExpensesItem,ExpensesCost
I have a combo box cmbsearch that shows HorseID,HorseName, that is queried
to a query to only show unique Names
How do I filter my Continuous form so as when I select a HorseID,HorseName
it only shows those records below
Thanks for any help..........Bob
 
Hi Bob,
Assuming that cmbSearch is on the main form and HorseID is its bound column,
use the AfterUpdate event of the combo:

Private Sub CboSearch_AfterUpdate()

Form("SubFormNameHere").Form.Filter = _
"[HorseID]=" & Me.CboSearch
Form("SubFormNameHere").Form.FilterOn = True

End Sub




|
|
| I have a continuous form that has
| HorseID,HorseName,ExpensesItem,ExpensesCost
| I have a combo box cmbsearch that shows HorseID,HorseName, that is queried
| to a query to only show unique Names
| How do I filter my Continuous form so as when I select a HorseID,HorseName
| it only shows those records below
| Thanks for any help..........Bob
|
|
 
That's easy,

SELECT HorseID FROM AllHorses WHERE HorseCurrentLocation<>"NSW" _
AND ThisYearLuck > LastYearLuck :)

Regards


| Brilliant thanks JK....working on our Mel Cup bet ;)
| Regards Bob
|
| | > Hi Bob,
| > Assuming that cmbSearch is on the main form and HorseID is its bound
| > column,
| > use the AfterUpdate event of the combo:
| >
| > Private Sub CboSearch_AfterUpdate()
| >
| > Form("SubFormNameHere").Form.Filter = _
| > "[HorseID]=" & Me.CboSearch
| > Form("SubFormNameHere").Form.FilterOn = True
| >
| > End Sub
| >
| >
| >
| >
| > | > |
| > |
| > | I have a continuous form that has
| > | HorseID,HorseName,ExpensesItem,ExpensesCost
| > | I have a combo box cmbsearch that shows HorseID,HorseName, that is
| > queried
| > | to a query to only show unique Names
| > | How do I filter my Continuous form so as when I select a
| > HorseID,HorseName
| > | it only shows those records below
| > | Thanks for any help..........Bob
| > |
| > |
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Filter a subForm 8
Query Expression Help! 26
4 #Error Lines in a Query 2
Add another Combo Box Question! 3
Create a new Table Question 10
Can This be Done! 10
Ok This one is Tuff 3
Filter Question 1

Back
Top