Listbox Challenge

fluidmind

Registered User.
Local time
Today, 14:09
Joined
Jun 30, 2006
Messages
66
Hi folks!

I have a listbox in one of my forms with the following RowSource:

Code:
SELECT fsVisbetalingsprocent.navn1, fsVisbetalingsprocent.betalingsprocent1,
fsVisbetalingsprocent.fradato1 FROM fsVisbetalingsprocent WHERE
fsVisbetalingsprocent.sælgernr1=forms.vissælger.sælgernr ORDER BY
fsVisbetalingsprocent.fradato1;

The output looks like this:

(navn1) (betalingsprocent1) (fradato1 is hidden)
June 0,50
August 0,30
August 0,30
August 0,30

In my query 'fsVisbetalingsprocent' the 'betalingsprocent' is allways the same when the month is the same. So I want the listbox to write the month (navn1) only once...

I've been trying hard for an hour or so, and I just can't get it to work!

Any suggestions???

// JR
 
Does this work?

SELECT fsVisbetalingsprocent.navn1, fsVisbetalingsprocent.betalingsprocent1,
fsVisbetalingsprocent.fradato1
FROM fsVisbetalingsprocent
WHERE
fsVisbetalingsprocent.sælgernr1=forms.vissælger.sælgernr
GROUP BY fsVisbetalingsprocent.navn1, fsVisbetalingsprocent.betalingsprocent1, fsVisbetalingsprocent.fradato1
ORDER BY
fsVisbetalingsprocent.fradato1;
 
Thanks!

Hey thanks so much!

You f********* rock! Don't know how much trouble that little line just spared me... :-)

// JR
 

Users who are viewing this thread

Back
Top Bottom