CHeighlund
Programmer
I'm working on a Delphi program that is supposed to interface with an Access Database. As far as I can tell, the version is Access 2000.
I'd been developing on a box which doesn't have Access, so I'd copied the information over to a PostgreSQL database and attempted to work from that. I swapped my code over to a box with Access today for a test run, and I'm getting blown up in the code at one point.
I was using the following code on the PostgreSQL side:
The purpose of this code was to select the number of unique values in the field. Although the database handling seemed to go well with an earlier statement of 'select distinct(deptcd) from sessionD2', the count(distinct()) throws out an error reading "undefined function 'distinct' in expression".
How can I code my statement to get the same effect in Access as I had before with PostgreSQL?
I'd been developing on a box which doesn't have Access, so I'd copied the information over to a PostgreSQL database and attempted to work from that. I swapped my code over to a box with Access today for a test run, and I'm getting blown up in the code at one point.
I was using the following code on the PostgreSQL side:
Code:
select count(distinct(deptcd)) as foo from sessionD2;
How can I code my statement to get the same effect in Access as I had before with PostgreSQL?