Now your pattern has changed. I would write a small function that would take care of all cases.
Code:
Private Function GetLongLat(pCode As String, pCoord As String) As Double
'returns a double of the Lat. or Long.
Dim d As DAO.Database
Dim r As DAO.Recordset
Dim sSQL As String
Dim pos As Integer 'position of the space in the postal code
Dim PC As String 'first part of Postal code
Set d = CurrentDb
pos = InStr(1, pCode, " ")
PC = Trim(Left(pCode, pos))
GetLongLat = ""
sSQL = "SELECT " & pCoord & " FROM TBLPostcodes WHERE code = '" & PC & "';"
Set r = d.OpenRecordset(sSQL)
If Not r.BOF And Not r.EOF Then
GetLongLat = r.Fields(0)
End If
r.Close
Set r = Nothing
Set d = Nothing
End Function
In the query, you would use
TheLat: GetLongLat([Postcode], "lat")
TheLng: GetLongLat([Postcode], "lng")