W
WSF
Access97
I have a query in design view with the following in the Field property:
WhereIs: Left([CurrentLocation],InStr([CurrentLocation],"-")-2)
In the underlying table [CurrentLocation] is a Text Field that contains a
primary and secondary location separated by space-hyphen-space. I need to
extract only the primary location.
The above works fine without the -2, but shows the space-hyphen at the end
of the result.
Where am I going wrong here?
TIA
WSF
I have a query in design view with the following in the Field property:
WhereIs: Left([CurrentLocation],InStr([CurrentLocation],"-")-2)
In the underlying table [CurrentLocation] is a Text Field that contains a
primary and secondary location separated by space-hyphen-space. I need to
extract only the primary location.
The above works fine without the -2, but shows the space-hyphen at the end
of the result.
Where am I going wrong here?
TIA
WSF