Cannot change scale of number?

  • Thread starter Thread starter idiot
  • Start date Start date
I

idiot

CREATE TABLE tblDecimalDataTypes (
DefaultType DECIMAL,
SpecificType DECIMAL(10,5))

I executed the SQL statement above in access 2003 and I got the syntax
error.
 
I do not think JET understands the statement you used.

Try:
Dim strSql As String
strSql = "CREATE TABLE tblDecimalDataTypes (Field1 DECIMAL (10,5));"
CurrentProject.Connection.Execute strSql

Presumably you are aware that JET cannot be trusted with even very basic
queries using this data type:
http://allenbrowne.com/bug-08.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top