To manage the vice versa issue, create a function similar to the following using Mid & Left functions:
Code:
Function ViceVersa(strTest) As String
ViceVersa = Trim(Mid(strTest, InStr(strTest, "-") + 1) & " - " & Left(strTest, InStr(strTest, "-") - 1))
End Function
or more simply, use the Split function
Code:
Function ViceVersa(strTest) As String
ViceVersa = Trim(Split(strTest, "-")(1) & " - " & Split(strTest, "-")(0))
End Function
Example usage:
Code:
ViceVersa("Basle - Beirut")
Beirut - Basle
Then on your form have a Vice Versa button with code to run the function on selected data
The issue you may face is if your place name includes hyphens e.g. Weston-super-Mare
If that is possible, the function will need a minor tweak e.g.
Code:
ViceVersa = Trim(Split(strTest, " - ")(1) & " - " & Split(strTest, " - ")(0))
Recommend you remove spaces & special characters from field names - use FromTo instead of From - To