Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 12th, 2006, 12:45 PM
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, 01: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

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles