Hi Everyone, I'm new to Access, trying to convert from Alpha 5 because they only seem interested in large entities now and I am a (very) small business. I notice that syntax is similar but not identical and I've been unable to find an equivalent to what I need to do. I need to choose a numeric value depending on a text field which is a customer code number, there are several codes for one price, several for another.
I used to use;
CASE (CusCode="001".OR.CusCode="002".OR.CusCode="005",20 ,CusCode="003".OR.CusCode="073".OR.CusCode="076",4 0,CusCode="054".OR.CusCode="056".OR.CusCode="080", 75) etc..
CASE in Access doesn't seem appropriate, I've tried multiple IIf functions but I would need about 60 of them and that seems un-necessary. IIf and ORs don't seem to work together for me and I've tried SWITCH but that didn't work.
I am using this to calculate values in a table and eventually it creates a customer account in the shape of a report. The numbers are charges to customers, depending on the code number which is different for 'batches' of differing size houses or apartments.
Thanks for any pointers anyone can give me to get started.
Trevor.