Hi all:
I'm used to doing this stuff in SQL Server, and Access is driving me batty.
I'm simply trying to create a table, but it keeps telling me that the syntax is wrong.
Would someone please show me where?
Thanks,
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors
I'm used to doing this stuff in SQL Server, and Access is driving me batty.
I'm simply trying to create a table, but it keeps telling me that the syntax is wrong.
Would someone please show me where?
Code:
Dim dbs As Database
Dim s As String
s = "CREATE TABLE Oct08 ([ID] AutoNumber [Long Integer], " & _
"Keywords Text, CurrentMonth Number [Double], " & _
"[Annual Monthly Search] Number [Double], [Global Return] Number [Double], " & _
"[CurrentMonth Return] Number [Double], [Month 1] Text, [Month 2] Text, " & _
"[Month 3] Text, [Month 4] Text, [Month 5] Text, " & _
"[Month 6] Text, [Month 7] Text, [Month 8] Text, " & _
"[Month 9] Text, [Month 10] Text, [Month 11] Text, [Month 12] Text); "
Set dbs = CurrentDb
dbs.Execute s
Thanks,
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors