If the SQL by default retunrs all records, then to only show one of those records you use the Filter property. This is the same as the WHERE part of the SQL
"Din løsning har jeg prøvet men kræver en del ekstra koder så jeg havde håbet på der fandes en smartere metod"
What is "Smartere"?? Somehow you have to tell access to show only one record instead of all of them.
And what ever method you choose is going to require some work one way or another. You cant expect Access to be able to read your mind and just show one of the records.
"Din løsning har jeg prøvet men kræver en del ekstra koder .."
I dont think setting the Filter property requires much code at all.
which still requires a change to teh SQL to sort after a specific record to get the first. So I may as well use WHERE....
But then its not me who wanted the solution, so ....
And I'll just mention again. TOP 1 does NOT necessarily return only one record
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.