Wrox Programmer Forums
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 18th, 2013, 06:38 AM
Authorized User
Join Date: Sep 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts

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


If txtSalary.Text <> " " AND txtmCover <> " " AND txtMember.Text <> " " AND txtmRate.Text <> " " Then

MsgBox "Welcome"

MsgBox "Enter Values"
End If

Last edited by stahorse; November 18th, 2013 at 06:47 AM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports 8.0 , My Sql 5.0 with Vb6.0 thiyagu6682 Pro VB Databases 0 August 21st, 2007 08:22 AM
Excel insert Page Break from VB6 shurl Pro VB 6 1 March 2nd, 2007 04:56 AM
VB6/Excel/SQL tmiller1 Excel VBA 2 April 6th, 2005 02:10 PM
SQL Server connect to VB6 okinokiyo SQL Server 2000 3 June 7th, 2004 11:30 AM
SQL 2K and VB6 FrontEnd vinceclo SQL Server 2000 0 February 4th, 2004 10:29 PM

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