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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CREATE TABLE error

Status
Not open for further replies.

TJones8

Technical User
Apr 16, 2002
77
GB
I have a form that creates a table for some data from another table to be filtered into. This is the quick snippet i use :-

strSQL = "CREATE TABLE FilterStationTimes (Id INTEGER, Time LONG, Duration LONG, dTime LONG);"

DoCmd.RunSQL strSQL


for some reason, i get an error 'Syntax error in field definition', but i can't see what i've done wrong

TIA
 
Afternoon


Time is a worksheet function so maybe if you call Time ATime you will have a better effect

I did this and it created the table

regards

Jo
 
Aha, worked perfectly now thx :)
even though a few of my other tables have a 'Time' field, but they were created manually, so i guess that's why they work.

Thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top