Error in Database vb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JuAn2226
    New Member
    • Mar 2008
    • 27

    Error in Database vb

    [ODBC MICROSOFT DRIVER] The INSERT INTO statement contain unknown file name: 'TimeStart'

    i realy no idea how to solve this error because the TimeStart is excatly the name i use in the Results table. plz guide me.


    If myvari = vbOK Then

    strSql1 = "INSERT INTO Results (TimeStart, TimeEnd, AverageSpeed, NumberOfCar)" & _
    " VALUES ('" & frmDisplay.txtT imeStart.Text & "'," & _
    " '" & frmDisplay.txtT imeEnd.Text & "','" & frmDisplay.lblA verage.Caption & "','" & frmDisplay.lblN um.Caption & "')"
    DE.Conn.Execute strSql1
    End If
    Resume Next
    End If
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    May I see your database connection.

    Rey Sean

    Comment

    • CyberSoftHari
      Recognized Expert Contributor
      • Sep 2007
      • 488

      #3
      Check 'TimeStart' Field is available in your table?
      Note: As Rey told, Check the connection string is connected the current database.

      Comment

      Working...