swaink
Active Member
- Joined
- Feb 15, 2002
- Messages
- 432
Hi All
I have a data set in an Excel Spreadsheet table and am querying that table from another workbook
In the data set I have a column showing the UK postcode with no space, I need to extract only the postcode down to sector level and add a space
In my query I have used select LEFT([Postcode],LEN([Postcode])-3) &" "& LEFT(RIGHT([Postcode],3),1) but I receive a Data Type mismatch in criteria expression error
For example TW145JS would look like TW14 5
I have tried searching for a clue to where I am going wrong without success and I wondered if anyone else has experienced this problem and is able to point me ion the right direction
Any help appreciated
Many thanks
Kevin
I have a data set in an Excel Spreadsheet table and am querying that table from another workbook
In the data set I have a column showing the UK postcode with no space, I need to extract only the postcode down to sector level and add a space
In my query I have used select LEFT([Postcode],LEN([Postcode])-3) &" "& LEFT(RIGHT([Postcode],3),1) but I receive a Data Type mismatch in criteria expression error
For example TW145JS would look like TW14 5
I have tried searching for a clue to where I am going wrong without success and I wondered if anyone else has experienced this problem and is able to point me ion the right direction
Any help appreciated
Many thanks
Kevin