access vba insert query

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

sunny_mehra

Thread Starter
Joined
Jan 18, 2013
Messages
1
i get error while running this query. pls help me



CurrentDb.Execute "INSERT INTO tblReports(Reportone,ReportTwo,ReportThree,ReportFour,ReportFive,ReportSix,ReportSeven,ReportEight,ReportNine,ReportTen,ReportEleven,ReportTwelve,ReportThirteen,ReportFourteen,ReportFifteen,ReportSixteen) " & _
" VALUES(" & Me.cboAXX & ",'" & Me.cbo3ETJ & "','" & Me.cboEiger & "','" & Me.cboBarcap & "','" & Me.cboDB & "','" & Me.cboMorgan & "','" & Me.cboSSGA & "','" & Me.cboMS & "','" & Me.cboSWIP & "','" & Me.cboSSR & "','" & Me.cboRussell & "','" & Me.cboAxaF & "','" & Me.cboLate & "','" & Me.cboAXAL & "','" & Me.cboPlatform & "','" & Me.cboLedger & "')"
SubtblReports.Form.Requery
 
Joined
Sep 4, 2003
Messages
4,912
What is the exact error you are receiving? My advice would be to set the value of the SQL string to be executed to a variable and then use the DEBUG.PRINT function to print the SQL statement to the debug window. If should be much easier to determine if the SQL is correct when you see it with the exact parameters it is passing.

Rollin
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top