I need some help with some code. I am new to this. Can someone please help me. How do I do this?
the table is apparel
the field in my table category
the contents of the field category are accessories and 2004 collection. There are about 72 items, some have accessories and the rest are 2004 collection.
I want to look in the field "category" from the table "apparel". If the contents that are located in the field "category" equals "accessories" then show me the number "26" or if the contents that are located in the field "category" equals "2004 collections" then show me the number "24" and if none of the contents in the field "category" matches either "accessories" or "20004 collection" then show me the number "1".
I want to put the code in a module so I can call the function in a query.
Brian
the table is apparel
the field in my table category
the contents of the field category are accessories and 2004 collection. There are about 72 items, some have accessories and the rest are 2004 collection.
I want to look in the field "category" from the table "apparel". If the contents that are located in the field "category" equals "accessories" then show me the number "26" or if the contents that are located in the field "category" equals "2004 collections" then show me the number "24" and if none of the contents in the field "category" matches either "accessories" or "20004 collection" then show me the number "1".
I want to put the code in a module so I can call the function in a query.
Brian