I have the following VBA code that runs the Update sql and updaes the field CandidateNumber.
My Question is I want to update the field by joining the following three elements into one string:
(Me.Text38) + “/0” + “Me.fkDesignerID”
So in the above case if Me.Text28 is 0602007 and Me.fkDesignerID is 70, then the updated field value will be 0602007/070.
When I run the above code it uses the forward slash (“/”) as a divide symbol and gives the wrong output. Can someone plz point me in the right direction on how to this?
Thanks,
Ket
Code:
[FONT=Verdana][SIZE=2]strCNum = "UPDATE tblExamDetails " & _
"SET tblExamDetails.candidateNumber =" & Me.Text38 & "/0" & Me.fkDesignerID & " " & _
"WHERE ((tblExamDetails.fkDesignerID)=" & Me.fkDesignerID.Value & " " & _
"AND (tblExamDetails.fkExamType)=" & Me.fkExamType.Value & ");"
DoCmd.RunSQL strCNum
[/SIZE][/FONT]
(Me.Text38) + “/0” + “Me.fkDesignerID”
So in the above case if Me.Text28 is 0602007 and Me.fkDesignerID is 70, then the updated field value will be 0602007/070.
When I run the above code it uses the forward slash (“/”) as a divide symbol and gives the wrong output. Can someone plz point me in the right direction on how to this?
Thanks,
Ket