I Dimmed a string variable and then built a line of code which I set equal to the variable. Is there a way to now use that variable as a line of VB code?
Code:
If Me.chkPris4None And Me.chkPris4Lac Then
Call Correction("Pris", "4")
GoTo Leave
End If
Private Sub Correction(kind, pers)
Dim retval As String
MsgBox "Can't have 'None' AND injury box checked.", vbOKOnly, "Data Error"
retval = "me.chk" & kind & pers & "None = 0"
End Sub
Comment