Hello to everyone,
I have a database with several representatives in different cities, sometimes there are many representatives in one city.
The search is like:
sql_representatives.source = ("Select ID, CITY from REPRESENTATIVES Where PROVINCE_ID = " & LST_PROVINCE.ItemData(LST_PROVINCE.ListIndex) & ";"
The above sql return all cities in the database. I need to have both ID and CITY, so I can not use
sql_representatives.source = ("Select DISTINCT CITY from REPRESENTATIVES Where PROVINCE_ID = " & LST_PROVINCE.ItemData(LST_PROVINCE.ListIndex) & ";"
as i do not get the ID.
How can I solve this problem?
I thank you for your time.