Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distinct Query

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
how do i convert the following SQL statement into a passthrough statement in Access

select count(distinct customersurname) from mydatabasetable



i have tried typing this in but it does not work
 
SELECT DISTINCT(customersurname),COUNT(customersurname) FROM mydatabasetable GROUP BY customersurname

Remedy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top