Apologies if this has been asked somewhere before, I checked the FAQ / search and couldn't find an answer but I admit that I am not the most tecnically minded person and a solution may have gojne completely over my head...
I wanted to add a search function to a form on my database which allows me to search by surname.
I finally settled on a combo box with three columns: Surname, Firstname and Date of Birth. I used the combo box wizard to do this (selecting option 3 to search the form)and then arranged the fields in alphabetical order.
The row source coding I have is this:
SELECT [1 - Meningo data 1999-present].surname, [1 - Meningo data 1999-present].firstname, [1 - Meningo data 1999-present].dob FROM [1 - Meningo data 1999-present] ORDER BY [1 - Meningo data 1999-present].surname, [1 - Meningo data 1999-present].firstname;
The problem I have is this...
If I enter a surname say for example 'Smith' and then use the combo box to select the record I want, for example 'John Smith', it does not necessarily open that record.
The record that is opening appears to be the first record (lowest ID number) on the database that has the surname 'Smith' irrespective of First name.
I am still trying to learn the basics of Access and so am at a loss of how to resolve this. Any help would be much appreciated.
I wanted to add a search function to a form on my database which allows me to search by surname.
I finally settled on a combo box with three columns: Surname, Firstname and Date of Birth. I used the combo box wizard to do this (selecting option 3 to search the form)and then arranged the fields in alphabetical order.
The row source coding I have is this:
SELECT [1 - Meningo data 1999-present].surname, [1 - Meningo data 1999-present].firstname, [1 - Meningo data 1999-present].dob FROM [1 - Meningo data 1999-present] ORDER BY [1 - Meningo data 1999-present].surname, [1 - Meningo data 1999-present].firstname;
The problem I have is this...
If I enter a surname say for example 'Smith' and then use the combo box to select the record I want, for example 'John Smith', it does not necessarily open that record.
The record that is opening appears to be the first record (lowest ID number) on the database that has the surname 'Smith' irrespective of First name.
I am still trying to learn the basics of Access and so am at a loss of how to resolve this. Any help would be much appreciated.