Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 13th, 2003, 08:32 AM
AliCat AliCat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Green Bay, Wisconsin
Posts: 60 AliCat User rank is Private First Class (20 - 50 Reputation Level)AliCat User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 43 m 32 sec
Reputation Power: 5
Question Checking & Comparing Values

I'm using Microsoft Access but I need help with some of the VB programming code. I have a form that the user enters a last name, phone number, and password. (Then they click the cmdEnter button.)

Under the Private Sub for the cmdEnter_Click (I'm guessing that's where it should go) I want the program to go to the customer table (the fields in that table are Last_Name, EmployeeID, and Password) and to check and make sure the variables they entered match up with a row in the customer table.

If it does, another form opens (I have the code for that already).
If it doesn't match, this label will appear: (lblSomething.Visible = True) to let them know they need to re-renter.

I really need help with this so thanks in advance to anyone who helps get me on the right track!!!!

Reply With Quote
  #2  
Old August 13th, 2003, 10:35 AM
nopoints nopoints is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Windsor ON, Canada
Posts: 459 nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 44 m 22 sec
Reputation Power: 8
do you know how to connect to a database? get a recordset? do you know any SQL?
__________________
Programmer's Corner

Reply With Quote
  #3  
Old August 13th, 2003, 01:13 PM
AliCat AliCat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Green Bay, Wisconsin
Posts: 60 AliCat User rank is Private First Class (20 - 50 Reputation Level)AliCat User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 43 m 32 sec
Reputation Power: 5
I can connect to a database through the ADO method. I know a little SQL - unfortunately the stuff I use isn't formatted quite right for Access.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Checking & Comparing Values


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway