Den løsning kender jeg men ulempen er alle record "populært sagt listes ud" for derefter at selektere. Det er jo tidsrøvende. Det var bedre om Select ... blev udført fra start kun med de record der fordres
Hvis der ikke findes en bedre løsning vil jeg måske lave en SELECT uden WHERE... lagt i vedaktuelt, og så selectivt sætte If ... Where ... elseif... Where... . . Hvad er din erfaring ?
"Det var bedre om Select ... blev udført fra start kun med de record der fordres" How do you know what the "WHERE ...." is to be BEFORE the form is open???
And if you know what the WHERE is then you can change the Me.Filter property...
Where do/will you have this code? "If ... Where ... elseif... Where...
If you know the WHERE beforew you open the form then you can change the record source to include the WHERE. That can be done in a couple of wways, either change the SQL for a query you use as the record source, or change the SQL directly in the record source, which means building the SQL dynamically (IE if the WHERE changes, then you change the SQL....)
But then you might as well change the Me.Filter property.
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.