Instead:
CREATE Table Aa_News (ID Counter,Field1 double(Fixed,3) )
try:
CREATE Table Aa_News (ID Counter,Field1 double(10,3) )
or
CREATE Table Aa_News (ID Counter,Field1 DECIMAL(10,3) )
[EDIT]
It's strange, but using VBA and MS ADO 2.8 Library below code executes without errors:
CurrentProject.Connection.Execute "CREATE TABLE AAA (ID COUNTER, Field1 DECIMAL(10,3))"
So, probably, it's not possible to define the size and decimal places for field in DDL query using .NET drivers (Jet OLEDB). Please, read this:
Allen Browne - MS Access Tips: DDL Code Examples[
^]
Allen Browne wrote:
While DDL is important in some larger databases, it is of limited use in Access. You can create a Text field, but you cannot set the Allow Zero Length property to No, so any query criteria must test for both Nulls and zero-length strings. You can create a Yes/No field, but you get a text box, not a check box, since you cannot set the Display Control property with DDL. You can create a Date/Time field, but you cannot set the Format property. DDL cannot create Hyperlink fields, Attachment fields, or the complex data types at all.
Ultimately, you execute your DDL query under DAO or ADO. For DAO, use:
dbEngine(0)(0).Execute strSql, dbFailOnError
For ADO, use:
CurrentProject.Connection.Execute strSql
Some features of JET 4 (Access 2000 and later) are supported under ADO only. These queries fail if you paste the SQL statement into the query designer in Access, since the Access interface uses DAO.
One case where DDL is really useful it to change a field's data type or size. You cannot do this in DAO or ADOX, so DDL is your the only practical approach (other than copying everything to another field and deleting the old one.) Other than that, Access developers use DDL infrequently.
Also, alternatively, you can create table without
Field1
and then try to add column in DDL query:
ALTER TABLE Aa_News ADD COLUMN Field1 DECIMAL(10,2);
As per i understand, it could not work in some cases.
Another way is to use
1) DAO:
http://stackoverflow.com/questions/16292960/is-it-possible-to-change-the-double-column-decimal-size[
^]
or
2) ADODB command:
Using Adodb.Command.Execute Method in C# and ASp.net[
^]
[/EDIT]