Autoincrement field in MS Access table

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Autoincrement field in MS Access table

Post by oz8hp » Wed 07 Oct 2009 09:15

I am trying to use an MS Access 2000 table with the newest version of UniDAC but I am having troubles with an autoincrement field.
I have a grid (from the Devart package) on a form where one of the fields is auto but when using MS Access it doesn't increase and I get an error saying that field should be filled out.
If I shift to MySQL db then it works.

Are there some specific options that I need to set.

hendrang
Posts: 6
Joined: Mon 28 Sep 2009 17:12

Re: Autoincrement field in MS Access table

Post by hendrang » Wed 07 Oct 2009 16:17

oz8hp wrote:I am trying to use an MS Access 2000 table with the newest version of UniDAC but I am having troubles with an autoincrement field.
I have a grid (from the Devart package) on a form where one of the fields is auto but when using MS Access it doesn't increase and I get an error saying that field should be filled out.
If I shift to MySQL db then it works.

Are there some specific options that I need to set.
Set properties Options.RequiredFields to False.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 08 Oct 2009 06:43

We'll add support for autoincrement fields in the next UniDAC build.

oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Post by oz8hp » Thu 08 Oct 2009 10:34

The Options.RequiredFields set to false does the trick for now.

As always looking forward to next version.

UniDAC is the best money I have spend on software in many years.

Post Reply