G
Guest
Something is wrong with my statement. It does not instert the item into the
table.
FRM:ADVERSE_EVENTS - is the main form
InterviewID - it should be interviewId, but it gets corrected to
InterviewID, is on the main form in a text box
project coordinator - is the table where i want to put the information
InterviewID - is the field in project coordinator where the value should be
input into
The error I'm getting is Syntax error on INSERT INTO statement
Dim str As Long
str = Forms![FRM:ADVERSE_EVENTS].InterviewID
strSQL = "INSERT INTO project coordinator (InterviewID) " & "VALUES (" & str
& ");"
CurrentDb.Execute strSQL
table.
FRM:ADVERSE_EVENTS - is the main form
InterviewID - it should be interviewId, but it gets corrected to
InterviewID, is on the main form in a text box
project coordinator - is the table where i want to put the information
InterviewID - is the field in project coordinator where the value should be
input into
The error I'm getting is Syntax error on INSERT INTO statement
Dim str As Long
str = Forms![FRM:ADVERSE_EVENTS].InterviewID
strSQL = "INSERT INTO project coordinator (InterviewID) " & "VALUES (" & str
& ");"
CurrentDb.Execute strSQL