![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello Everyone, I'm suffering trying to get a Query Criteria working. My job is to offer two unbound controls on a form "ValueAmountLK", "ValueOperatortLK" and filter down the results, against a stored field, PaymentAmount ValueAmountLK unbound is Currency Field. ValueOperatortLK unbound is a character Field, with values restricted to ">","=","<" PaymentAmount is a Currency Field being queried. The bit challenging me is the query criteria....... (On the PaymentAmount Field) - WHERE statement Like IIf(IsNull([Forms]![TransactionBrowseForm]![ValueAmountLK]),"*", [Forms]![TransactionBrowseForm]![ValueAmountLK]) This works, if the field is empty - and I can also adjust the ">" with "<" or "=" manually to give the results. But I am unable to substitute the form control that the user can use the specify their preference. The outcome is the operator can select the two fields to show/filter records to output for example >$1000 or = $32.45 or <$0.10c. Thanks for listening. Any hints or tips would be appreciated! |
![]() |
| Thread Tools | |
| Display Modes | |
| |