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

Did I leave something out of my Query? 1

Status
Not open for further replies.

MacroAlan

Programmer
Dec 4, 2006
137
US
I created this query in VBA and tried it in the Access Design View and get error 3134 which is totally inadequate.
Code:
INSERT INTO [Schema] ( SchemaName, SourceFileType, SourceSheet, SourceDelimiter, DateStamp,UserID ) 
WHERE (((Schema.SchemaName="Beattles_schema") AND (Schema.SourceFileType="xls") AND (Schema.SourceSheet="PROFILES-_Sample.xls") AND (Schema.SourceDelimiter="Excel") AND (Schema.DateStamp=#12/20/2006 08:37:01#) AND Schema.UserID="aardvark" ))
Do I need a SELECT statement?

Alan

 
You need a VALUES clause
Code:
INSERT INTO [Schema] ( SchemaName, SourceFileType, SourceSheet, SourceDelimiter, DateStamp,UserID ) 

VALUES ( 'Beattles_schema', 'xls', 'PROFILES-_Sample.xls', 'Excel', #12/20/2006 08:37:01#, 'aardvark' )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top