Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual 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 ASP Free Forums Sponsor:
  #1  
Old June 15th, 2004, 06:25 PM
JU728 JU728 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 5 JU728 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question comparing two fields from different forms

I have two forms in which I want to compare a field from each. The two forms are linked through an ID #. The problem is that I have no idea on how to compare the two. I am fairly new to programming with VB and have been referring to examples from books to aid in the process thus far. Can anyone give me any suggestions? Below is some information that may be helpful:

The two fileds being compared are:

CLASS_TIME (form)
CLASS_TIME (subform)

The field that links the two forms are:

STUDENT ID


I'm simply trying to generate code that will inform the user that the CLASS_TIME in the form, conflicts with the CLASS_TIME in the subform. Any suggestion will be gratly appreciated.

Reply With Quote
  #2  
Old June 22nd, 2004, 12:40 PM
spak111 spak111 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 349 spak111 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 25 sec
Reputation Power: 5
Send a message via AIM to spak111
The easiest way that I can think to do this would be to just reference the classes explicitly...

if form.CLASS_TIME <> subform.CLASS_TIME then
'some code
end if

This should work, however both forms must be open to do this process.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > comparing two fields from different forms


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 5 hosted by Hostway
Stay green...Green IT