M
mattthr
Guest
Hi,
I have an annoying little problem I hope you can help me with. I want to populate a form combo-box with the contents of one field using the DISTINCT statement to get unique entries. The problem is that Access2000 seems hell-bent on including the primary key as part of the query. With it, the DISTINCT statement fails (becuase, of course, all the primary keys are different) but without it, although the statement will work as a query, it won't fill the combo box!
What's going on here and how can I work round it?
I have an annoying little problem I hope you can help me with. I want to populate a form combo-box with the contents of one field using the DISTINCT statement to get unique entries. The problem is that Access2000 seems hell-bent on including the primary key as part of the query. With it, the DISTINCT statement fails (becuase, of course, all the primary keys are different) but without it, although the statement will work as a query, it won't fill the combo box!
What's going on here and how can I work round it?