Paul Clark
Registered User.
- Local time
- Today, 15:27
- Joined
- Oct 30, 2011
- Messages
- 23
I have a table MembershipList, containg the field PostCode and a form with field Code (contain AA or A).
This code works:
WHERE (((MembershipList.PostCode) Like ([Forms]![frm_membcode]!
This code works:
WHERE (((MembershipList.PostCode) Like ([Forms]![frm_membcode]!
Code:
& "*"))
but returns all possible A# and AA codes.
I have found suggested code using: LEFT(my_field, 2) FROM tbl WHERE my_field LIKE '[a-Z][a-Z]%'
Entered in the query SQL translates to this:
SELECT Left([PostCode],2) AS Expr1 FROM MembershipList WHERE ((([Code]) Like '[a-Z][a-Z]%'));
but returns blank!