VB6 SQL INSERT
Hi
I have a code below, I'm trying to check first if my textboxes have values then insert them in database, but I my code forever get "Welcome", even if there are no values in the textboxes
please help
Code:
If txtSalary.Text <> " " AND txtmCover <> " " AND txtMember.Text <> " " AND txtmRate.Text <> " " Then
MsgBox "Welcome"
Else
MsgBox "Enter Values"
End If
Last edited by stahorse; November 18th, 2013 at 06:47 AM..
|