Results 1 to 3 of 3
  1. #1
    Narvic is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    12

    Access 2010 postcode query to return first part of postcode

    In Access 2010 I have a table called CUSTOMER which contains a field called PCODE. In PCODE are the full UK postcodes for my customers. I have created a Query and inserted the table CUSTOMER and pulled down the PCODE field. In the criteria I have inserted Left([PCODE],InStr([PCODE]," ")-1) which I thought would return the left part of the postcode up to the space. This is not working as the PCODE column is blank. What am I doing wrong. Can anyone help please

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  3. #3
    Narvic is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    12
    Thank you for your reply Orange, I have solved the problem. I was putting the formula in criteria instead of field. It now works great.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access Query: Return Month Name and Year
    By PhatRam32 in forum Queries
    Replies: 7
    Last Post: 05-13-2013, 05:28 PM
  2. How Can export Large table part by part
    By shabar in forum Import/Export Data
    Replies: 2
    Last Post: 02-04-2013, 06:29 AM
  3. UK Postcode/ZIP Code Input Mask
    By tsn.s in forum Access
    Replies: 1
    Last Post: 04-02-2012, 05:49 AM
  4. Adding values in postcode lookup form to another form
    By robertmarkdudley95 in forum Programming
    Replies: 3
    Last Post: 03-30-2012, 02:00 PM
  5. Replies: 0
    Last Post: 02-19-2012, 08:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums