1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

access vba insert query

Discussion in 'Software Development' started by sunny_mehra, Jan 18, 2013.

Thread Status:
Not open for further replies.
  1. sunny_mehra

    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
     
  2. Rollin_Again

    Rollin_Again

    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
     
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 733,556 other people just like you!

Loading...
Similar Threads - access insert query
  1. leachim
    Replies:
    0
    Views:
    199
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1085814

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice