CREATE TABLE with decimal (1 Viewer)

seany

Registered User.
Local time
Today, 17:45
Joined
Sep 1, 2003
Messages
53
Can someone please help with this, it6 is having problem creating number field with 2 Decimal places

DoCmd.RunSQL "CREATE TABLE Temp (Speed_Band Text, Site_ID INTEGER, In decimal(10,2), Out decimal(10,2));"
 

workmad3

***** Slob
Local time
Today, 17:45
Joined
Jul 15, 2005
Messages
375
DoCmd.RunSQL "CREATE TABLE Temp (Speed_Band Text, Site_ID INTEGER, In NUMERIC(10,2), Out NUMERIC(10,2));"

hopefully the above will help.

You also might want to change the In fieldname to something else as In is an sql reserved word.
 

Users who are viewing this thread

Top Bottom