Connecting Tech Pros Worldwide Help | Site Map

Updating field based on Value of another field

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 12th, 2006, 11:45 AM
abprules
Guest
 
Posts: n/a
Default Updating field based on Value of another field

Can somebody help me with this scenario?
I want to update a date field when another field has a certain value
entered.

It is something like this:

When the PDetType field ( from tlkpERegStatus and tblPmtDetail) has a
value of "DO" ("Donation") or "SC" ("Scholarship Contribution")
entered, update the field NWCInvolveDate in the tblNWContact with the
current date.

Thanks in advance.


  #2  
Old December 12th, 2006, 12:35 PM
kingston via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Updating field based on Value of another field

You could do this in a form and use the PDetType control's AfterUpdate event.
Otherwise, you can do this at the table level with a query that scans
PDetType and updates the other fields. The key is linking the tables
together properly. If you do this in an update query, use the criteria
IsNull([NWCInvolveDate]) so that old data is not overwritten. If you do this
in a form with the AfterUpdate event, try something like:

If Me.PDetType = "DO" Or Me..PDetType = "SC" Then
Me.NWCInvolveDate = Date
End If


abprules wrote:
Quote:
>Can somebody help me with this scenario?
>I want to update a date field when another field has a certain value
>entered.
>
>It is something like this:
>
>When the PDetType field ( from tlkpERegStatus and tblPmtDetail) has a
>value of "DO" ("Donation") or "SC" ("Scholarship Contribution")
>entered, update the field NWCInvolveDate in the tblNWContact with the
>current date.
>
>Thanks in advance.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200612/1

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.