You need to include the single qoute in your SQL statement:
This because you declara as String.
Code:SQL = "INSERT INTO CandidateHistory(CandidateHistoryID)VALUES ('" & CandidateIdNumber & "')"Originally posted by johnnyboy23
this is my statement
but the value that i want should come from my varible because that value changes all the timeCode:SQL = "INSERT INTO CandidateHistory(CandidateHistoryID)VALUES (" & CandidateIdNumber & ")"
called
this this correct????Code:dim CandidateIdNumber as string




Reply With Quote