p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Beginning VB 6 (http://p2p.wrox.com/forumdisplay.php?f=75)
-   -   VB6 SQL INSERT (http://p2p.wrox.com/showthread.php?t=91506)

stahorse November 18th, 2013 06:38 AM

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


All times are GMT -4. The time now is 06:38 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.