Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS ACCESS SQL code ??

Status
Not open for further replies.

Leon1977

IS-IT--Management
Jun 27, 2001
79
0
0
BG
I need to write a Create table SQL script for MS ACCESS
but I need a autonumber field and a double (fixed 2)
How should I define theese datatypes

Create table table_name(
id int primary key /autonumber/,
price float /fixed(2)/
)

something like this

 
This should works, but it miss the double fixed2:

DoCmd.RunSQL "CREATE TABLE MyTable (id COUNTER PRIMARY KEY, price FLOAT)"

 
OK Thanx a lot
counter works but I still need the double (fixed 2)
!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top