I'm trying to create a query that selects records based on matching the first one or two letters from a postcode field to any one of 50 area codes ( representing the sales guys area).
My problem is this:
1) Can I do this in the criteria section of an ordinary query? I'm not familiar with SQL statements having managed to avoid them by using queries.
I know how to select the appropriate letters from the postcode field (using the LEFT function) but how do I do the matching?
Thanks in advance for your help.
QFTD: "Burn your bridges if you must, but there's never any harm in carrying an inflatable dinghy." - Me
My problem is this:
1) Can I do this in the criteria section of an ordinary query? I'm not familiar with SQL statements having managed to avoid them by using queries.
I know how to select the appropriate letters from the postcode field (using the LEFT function) but how do I do the matching?
Thanks in advance for your help.
QFTD: "Burn your bridges if you must, but there's never any harm in carrying an inflatable dinghy." - Me