Hello everybody,
I am new to this forum. Currently, I am designing a database for the company I work at. It is the first time I use ACCESS and it is ACCESS 97 (!).
Now my first ( of probably many following ) questions :
I have a table with a key data field. Now I want to set up a combobox which lists all entries of a data field in that table ( but it's not the key field ). But, I do not want duplicate entries.
The SQL query for the combobox as created by the wizard looks like this :
SELECT DISTINCTROW NEW_ID.[Project ID], NEW_ID.[Work ID]
FROM NEW_ID;
I only want to display the "Work ID" entries, without duplicates. "Project ID" is the key. I already tried to change DISTINCTROW into DISTINCT but that does not work because every entry in "Project ID" is unique, only the "Work ID" entries can repeat.
If I omit "NEW_ID.[Project ID]" in the query, nothing is displayed...
So, what should I do?! Please help, many thanks in advance!!
Victor
I am new to this forum. Currently, I am designing a database for the company I work at. It is the first time I use ACCESS and it is ACCESS 97 (!).
Now my first ( of probably many following ) questions :
I have a table with a key data field. Now I want to set up a combobox which lists all entries of a data field in that table ( but it's not the key field ). But, I do not want duplicate entries.
The SQL query for the combobox as created by the wizard looks like this :
SELECT DISTINCTROW NEW_ID.[Project ID], NEW_ID.[Work ID]
FROM NEW_ID;
I only want to display the "Work ID" entries, without duplicates. "Project ID" is the key. I already tried to change DISTINCTROW into DISTINCT but that does not work because every entry in "Project ID" is unique, only the "Work ID" entries can repeat.
If I omit "NEW_ID.[Project ID]" in the query, nothing is displayed...
So, what should I do?! Please help, many thanks in advance!!
Victor