This should just be a quickie, it's just that I've been looking round and can't find the answer! (Disclaimer: I've only recently started dipping into Access and SQL and while it's mostly making sense, there are holes in my knowledge like this one)
On a form I've got a combobox which is populated with values from the main table (Surnames in this case). The rowsource is just
"SELECT Patients.Surname FROM Patients ORDER BY Patients.Surname;"
What I want to do is avoid duplicates - if I have two people Dan Roberts and Jeff Roberts in my records, I only want one entry for Roberts in this combobox. I can't see any property for the combobox in Design View so I presume (hope!) that there is a SQL option that I haven't been able to find yet.
If anyone could just nudge me in the right direction it would be greatly appreciated.
Cheers!
On a form I've got a combobox which is populated with values from the main table (Surnames in this case). The rowsource is just
"SELECT Patients.Surname FROM Patients ORDER BY Patients.Surname;"
What I want to do is avoid duplicates - if I have two people Dan Roberts and Jeff Roberts in my records, I only want one entry for Roberts in this combobox. I can't see any property for the combobox in Design View so I presume (hope!) that there is a SQL option that I haven't been able to find yet.
If anyone could just nudge me in the right direction it would be greatly appreciated.
Cheers!