Access fieldname DISTINCT does not work

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Bob
Posts: 10
Joined: Thu 03 Jan 2008 21:18

Access fieldname DISTINCT does not work

Post by Bob » Wed 28 Apr 2010 20:05

I have a microsoft access fieldname DISTINCT, which is not very smart, but to late to change it now. This used to work using TADOQUERY but does not work using TUNIQUERY.

query.fieldbyname('distinct').asstring := 'YES'

When you goto post the record is when it fails with no error message.

Is their a work-around? I've tried referencing by index and that did not work either.

bork
Devart Team
Posts: 649
Joined: Fri 12 Mar 2010 07:55

Post by bork » Thu 29 Apr 2010 11:20

Hello

You should set the property Options.QuoteNames to True for TUniQuery or TUniTable.

Post Reply