Thanks for the replies. CompassRef is a text field.
I have utilised ypma's code, replacing the keywords with my own, where SearchButton1 is the button, SearchField1 is the search text field, villasT is the table and villasF is the form:
Private Sub SearchButton1_Click()
If...