Thread: VB6 SQL INSERT
View Single Post
  #1 (permalink)  
Old November 18th, 2013, 06:38 AM
stahorse stahorse is offline
Authorized User
Points: 58, Level: 1
Points: 58, Level: 1 Points: 58, Level: 1 Points: 58, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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..