I have a listbox which is populated by a query, however i have been asked by our Commissioning department if it would be possible to search contract values, with more than, less then etc.
I added an option group to my form with the following afterupdate
Which puts builds up my desired function ie: <100000 for contract with a value of less than £100,000
I then have a button which refeshes the listbox,
however when i try to reference this textbox 'txt_FinancialFilter' in the criteria in the query i get an error stating the expression is typed incorrectly, or is too complex to be evaluated etc...
Can anyone please point me in the right direction?
Many Thanks - Ian
I added an option group to my form with the following afterupdate
Code:
Select Case Me.opt_FinanceOption
Case 1
Me.txt_FinancialFilter = "*"
Case 2
Me.txt_FinancialFilter = "=" & txt_FinancialValue
Case 3
Me.txt_FinancialFilter = "<" & txt_FinancialValue
Case 4
Me.txt_FinancialFilter = ">" & txt_FinancialValue
End Select
Which puts builds up my desired function ie: <100000 for contract with a value of less than £100,000
I then have a button which refeshes the listbox,
however when i try to reference this textbox 'txt_FinancialFilter' in the criteria in the query i get an error stating the expression is typed incorrectly, or is too complex to be evaluated etc...
Can anyone please point me in the right direction?
Many Thanks - Ian
Last edited: