lulu50
asked on
Insert into table
Hi,
this is VB access database. I can insert one record but if I try to insert more than one I get a systax error.
I am not sure why.
This will insert fine for one record.
CurrentDb.Execute "INSERT INTO [Report_1_MTD_Daily_Contai nment] ([LOB], [CreatedDate], [Call_Count], [Contained_Calls])" _
& "(,'WMI', #" & MyDate & "#, '" & WMICount & "', '" & WMIContained & "');"
I want to do this:
CurrentDb.Execute "INSERT INTO [Report_1_MTD_Daily_Contai nment] ([LOB], [CreatedDate], [Call_Count], [Contained_Calls])" _
& "VALUES ('DC', #" & MyDate & "#, '" & DCCount & "', '" & DCContained & "')" _
& "(,'WMI', #" & MyDate & "#, '" & WMICount & "', '" & WMIContained & "');"
it says missing semicolon
Thanks,
Lulu
this is VB access database. I can insert one record but if I try to insert more than one I get a systax error.
I am not sure why.
This will insert fine for one record.
CurrentDb.Execute "INSERT INTO [Report_1_MTD_Daily_Contai
& "(,'WMI', #" & MyDate & "#, '" & WMICount & "', '" & WMIContained & "');"
I want to do this:
CurrentDb.Execute "INSERT INTO [Report_1_MTD_Daily_Contai
& "VALUES ('DC', #" & MyDate & "#, '" & DCCount & "', '" & DCContained & "')" _
& "(,'WMI', #" & MyDate & "#, '" & WMICount & "', '" & WMIContained & "');"
it says missing semicolon
Thanks,
Lulu
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER