Access DDL is not powerful enough to set these kinds of properties.
Use DAO instead. Set a boolean property called UnicodeCompression on the
field.
There's an example of creating a table in DAO, and setting these properties
here:
http://allenbrowne.com/func-DAO.html
Scroll down the page to this function to see how to set the properites:
Function StandardProperties(strTableName As String)
There are several important properties you cannot set via DDL, e.g.
AllowZeroLength.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Anupam" <(E-Mail Removed)> wrote in message
news:4B9F5711-19D0-4DEB-B8E7-(E-Mail Removed)...
>I am writing this code which is generating error:-
> dbs.Execute "CREATE TABLE Property_Ledger_Temp (Ledger CHAR(26)NOT NULL
> WITH
> COMPRESSION, Vr LOGICAL,CONSTRAINT Ledger UNIQUE (Ledger));"
> Without Compression the code is executed.