trebor3900
Registered User.
- Local time
- Today, 23:36
- Joined
- Apr 26, 2005
- Messages
- 47
I am trying to create a query that gives me a stock number relating to an item of clothing dependant on the sizes of the person concerned. When working i will make it into an update query but the criterea's seem to have a problem with each other.
I Got around this to an extent by using IIF statements in the query.
ie
IIf([tblClothing]![CollarSize]=0,[tblClothing]![CollarSize],[tblOfficers]![CollarSize])
so that if the sizes requiring the query were for trousers, the collar size query would not affect it as they would be zero anyway.
My problem is when i query for Minimum and Maximum Chest sizes or any other size that does not have an absolute value, but a range.
ie
IIf([tblClothing]![ChestMin]=0,[tblClothing]![ChestMin],[tblOfficers]![ChestSize] Between [tblClothing]![ChestMin] And [tblClothing]![ChestMax])------This returns no records
>[tblOfficers]![ChestSize]-------This works but affects the other queries. Cannot seem to put it successfully into an IIF statement
I Got around this to an extent by using IIF statements in the query.
ie
IIf([tblClothing]![CollarSize]=0,[tblClothing]![CollarSize],[tblOfficers]![CollarSize])
so that if the sizes requiring the query were for trousers, the collar size query would not affect it as they would be zero anyway.
My problem is when i query for Minimum and Maximum Chest sizes or any other size that does not have an absolute value, but a range.
ie
IIf([tblClothing]![ChestMin]=0,[tblClothing]![ChestMin],[tblOfficers]![ChestSize] Between [tblClothing]![ChestMin] And [tblClothing]![ChestMax])------This returns no records
>[tblOfficers]![ChestSize]-------This works but affects the other queries. Cannot seem to put it successfully into an IIF statement