michelleHEC
Programmer
I need to insert into sql either a string or a null value based on an if statement before the insert statement.
here is my code.
If AcctNo(intC) = "18410" Then
TrExpCode = "VMISC"
Else
TrExpCode = DBNull.value (here is the problem)
End If
***cut to the insert statement*****
sqlchk = "Insert Into PRTran (TRExpCode) values('" & TrExpCode & "')"
please any help would be much appreciated thanks
michelle
here is my code.
If AcctNo(intC) = "18410" Then
TrExpCode = "VMISC"
Else
TrExpCode = DBNull.value (here is the problem)
End If
***cut to the insert statement*****
sqlchk = "Insert Into PRTran (TRExpCode) values('" & TrExpCode & "')"
please any help would be much appreciated thanks
michelle