|
-
Jul 21st, 2004, 07:03 AM
#1
Thread Starter
New Member
Question regarding validating variables in text...
Have a little problem here...what I am trying to do is a simple program that requires me to validate user info. I have a text file "Registered_Voters.txt" that I am trying to validate information from text boxes from. I have 3 text fields (txtFirstName, txtLastName, txtSSN) which I placed as a variant. So far my code is....
Dim varVoter As Variant
varVoter = txtFirstname.Text + txtLastName.Text + txtSSN.Text
The variable works. Now the problem....
I have a commandbutton that I'd like to search the text "Registered_Voters.txt" for the listed variant, and if the variant exists I want to continue to my next form, however, if it doesn't exist I will display a message box. Any help here would be appreciated, I've tried several loops to no avail. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|