blindlemonray
Technical User
Hi All,
I am trying to pass a value to a SQL statement by way of an inputbox, but I can't seem to get it working. I cannot seem to pass the value from the inputbox into the = part of the sql statement.
Can anyone point me in the right direction?
Have also tried
and variations thereof.
thanks in advance
BLR
I am trying to pass a value to a SQL statement by way of an inputbox, but I can't seem to get it working. I cannot seem to pass the value from the inputbox into the = part of the sql statement.
Can anyone point me in the right direction?
Code:
Dim strCode As String
Dim sSQLdelete As String
strCode = InputBox("Please confirm client code for deletion", "Client Deletion")
sSQLdelete = "DELETE Plan_norm.* From Plan_norm WHERE (Plan_norm.Code)= strCode"
DoCmd.RunSQL sSQLdelete
DoCmd.OpenForm "Master_plancheck_frm", acNormal
Have also tried
Code:
sSQLdelete = "DELETE Plan_norm.* From Plan_norm WHERE (Plan_norm.Code)=" & strCode
and variations thereof.
thanks in advance
BLR