Comparing Forms for Matching Data

R

rshed

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.
--
 
R

ruralguy via AccessMonster.com

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.
 
R

rshed

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.
 
R

ruralguy via AccessMonster.com

Hi rshed,
How about posting the DLookup() code you wrote and we can offer suggestions
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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top