hiya
I'm trying to extract the first part of a postcode (before a space) for each record in a query result (alternatively in a table and create query later on these results).
i have the following code which works for a single string but how do I do it for each record?
Thanks
Lou
I'm trying to extract the first part of a postcode (before a space) for each record in a query result (alternatively in a table and create query later on these results).
i have the following code which works for a single string but how do I do it for each record?
Code:
Dim strPostcode as string
Dim intPosition as integer
Dim strFirstPart as string
strPostcode = "EH15 1JJ"
intPostition = InStr(strPostcode, " ")
strFirstPart = Left$(strPostcode, intPosition)
Thanks
Lou