rhernand
Registered User.
- Local time
- Today, 01:47
- Joined
- Mar 28, 2003
- Messages
- 96
I created a search form and query. If I do not enter anything I want to retrieve all the records. Otherwise I want to retrieve the records that meet the critertia I enter. Example, I want to enter, >500, <500 or =500. However, no matter what I enter, I always get the records equal to 0. This is my IIf statement.
IIf(IsNull([Forms]![frm_search]![KVA]),([tbl_oil_sample].[kva]) Like "* ",([tbl_oil_sample].[kva]) Like [Forms]![frm_search]![KVA])
IIf(IsNull([Forms]![frm_search]![KVA]),([tbl_oil_sample].[kva]) Like "* ",([tbl_oil_sample].[kva]) Like [Forms]![frm_search]![KVA])