G
Guest
Hey, Im trying to execute a simple SQL statement in VB and its not liking
it. It is saying its expectign 7 parameters when there 7 there and the table
names match the table and the data type.
Here is the code
CurrentDb.Execute ("INSERT INTO [Tbl_View Variations]([Project Number],
[Variation Number], [Variation Description], [Variation Cost], [Date
Created], [Start Date], [Month]) VALUES (project, varNumber, description,
poValue, dateCreated, startDate, months);")
The variables project, varNumber etc being variables declared in the
function as the appropriate data type.
I may be missing somethign small but Ive been sitting here getting square
eyes for hours.
it. It is saying its expectign 7 parameters when there 7 there and the table
names match the table and the data type.
Here is the code
CurrentDb.Execute ("INSERT INTO [Tbl_View Variations]([Project Number],
[Variation Number], [Variation Description], [Variation Cost], [Date
Created], [Start Date], [Month]) VALUES (project, varNumber, description,
poValue, dateCreated, startDate, months);")
The variables project, varNumber etc being variables declared in the
function as the appropriate data type.
I may be missing somethign small but Ive been sitting here getting square
eyes for hours.