A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Comparing Forms for Matching Data



 
 
Thread Tools Display Modes
  #1  
Old November 12th, 2006, 03:25 PM posted to microsoft.public.access.forms
rshed
external usenet poster
 
Posts: 15
Default Comparing Forms for Matching Data

How can I make my main form (Orders Processing) look for matching SSNs in
another form (DEROG 06) and change the SSN in the main form to "Red" to
indicated that SSN is located in the DEROG 06 form? (Each record has a SSN
that may or may not be in DEROG 06 form.)

Thanks in advance.
--

  #2  
Old November 12th, 2006, 03:59 PM posted to microsoft.public.access.forms
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default Comparing Forms for Matching Data

So the record is straight, forms do not *contain* data, tables do. Having
said that, you could use a DLookup() in the Current event of your form to
compare the SSN and set the control to red if it matches. It would actually
be faster to use a recordset of the other table and a FindFirst, but I'll
leave that up to you.

rshed wrote:
How can I make my main form (Orders Processing) look for matching SSNs in
another form (DEROG 06) and change the SSN in the main form to "Red" to
indicated that SSN is located in the DEROG 06 form? (Each record has a SSN
that may or may not be in DEROG 06 form.)

Thanks in advance.
--


--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com

  #3  
Old November 12th, 2006, 06:12 PM posted to microsoft.public.access.forms
rshed
external usenet poster
 
Posts: 15
Default Comparing Forms for Matching Data

I noticed you answered one of my other question. I failed to mention that
I'm pretty new at this and learning more as I go. Orders Processing and
DEROG 06 are Tables which I'm trying to compare SSNs with the results
reflected in my main form which is also called "Orders Processing." I tried
the DLookup to no avail. Please give me the information I need to type. I
seem to understand it better when I can relate it to my database.

Again, Thanks in advance.
--



"ruralguy via AccessMonster.com" wrote:

So the record is straight, forms do not *contain* data, tables do. Having
said that, you could use a DLookup() in the Current event of your form to
compare the SSN and set the control to red if it matches. It would actually
be faster to use a recordset of the other table and a FindFirst, but I'll
leave that up to you.

rshed wrote:
How can I make my main form (Orders Processing) look for matching SSNs in
another form (DEROG 06) and change the SSN in the main form to "Red" to
indicated that SSN is located in the DEROG 06 form? (Each record has a SSN
that may or may not be in DEROG 06 form.)

Thanks in advance.
--


--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via http://www.accessmonster.com


  #4  
Old November 12th, 2006, 06:31 PM posted to microsoft.public.access.forms
ruralguy via AccessMonster.com
external usenet poster
 
Posts: 1,172
Default Comparing Forms for Matching Data

Hi rshed,
How about posting the DLookup() code you wrote and we can offer suggestions
on how to change it.

rshed wrote:
I noticed you answered one of my other question. I failed to mention that
I'm pretty new at this and learning more as I go. Orders Processing and
DEROG 06 are Tables which I'm trying to compare SSNs with the results
reflected in my main form which is also called "Orders Processing." I tried
the DLookup to no avail. Please give me the information I need to type. I
seem to understand it better when I can relate it to my database.

Again, Thanks in advance.
So the record is straight, forms do not *contain* data, tables do. Having
said that, you could use a DLookup() in the Current event of your form to

[quoted text clipped - 9 lines]
Thanks in advance.
--


--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200611/1

 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.