It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Help with VB/SQL statement

Moderator: dafunkymunky

Help with VB/SQL statement

Postby jonrmoore on Sat May 03, 2008 4:13 pm

This statement looks ok to me but it gives me an error message regarding "too few parameters". Can someone tell me what is wrong? Thanks.
Code: Select all
Dim strSQL As String
        strSQL = "UPDATE tControl SET ctrlDate = '" & Format(DTP.Value, "mm/dd/yyyy") & "' " & _
         " WHERE CurrentBatchID = " & BatId & " AND coNum=" & comp
        Debug.Print strSQL  'copy the fully made string to VB's Immediate window, so you can spot issues.
        db.Execute strSQL, dbFailOnError
jonrmoore
 
Posts: 0
Joined: Sat May 03, 2008 4:08 pm

Who is online

Users browsing this forum: No registered users and 7 guests