PC Review


Reply
Thread Tools Rate Thread

Auto fill field if one date is greater that another

 
 
Paul
Guest
Posts: n/a
 
      21st Jun 2011
Hi, I have a TargetDate field and a ResponseDate field. If Response
date is after TargetDate I want to autoenter NO in a new field called
ResponseInTime. Can anyone help. Thanks
 
Reply With Quote
 
 
 
 
Bob Quintal
Guest
Posts: n/a
 
      21st Jun 2011
Paul <(E-Mail Removed)> wrote in news:6275a968-5f0d-48a9-9d3b-
(E-Mail Removed):

> Hi, I have a TargetDate field and a ResponseDate field. If Response
> date is after TargetDate I want to autoenter NO in a new field called
> ResponseInTime. Can anyone help. Thanks
>


Because calculable data should never be stored in a table, the people
who developed Access did not waste time creating utilities to make this
easier.

The right way to get this calculated field is in a query,or a form.

=iif(ResponseDate > TargetDate, "NO","Yes") can be put in the Record
Source property of a form or report textbox.

ResponseInTime: if(ResponseDate > TargetDate, "NO","Yes") would be how
to enter it in a query.

If you insist in storing it in a field, put
[ResponseInTime] = iif(ResponseDate > TargetDate, "NO","Yes")
in the After_Update Event's visual basic code for the two 'time'
fields.

--
Bob Q.
PA is y I've altered my address.
 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      21st Jun 2011
On Jun 21, 11:23*am, Bob Quintal <rquin...@sPAmpatico.ca> wrote:
> Paul <burnsp...@hotmail.co.uk> wrote in news:6275a968-5f0d-48a9-9d3b-
> 0654d0898...@s9g2000yqm.googlegroups.com:
>
> > Hi, I have a TargetDate field and a ResponseDate field. If Response
> > date is after TargetDate I want to autoenter NO in a new field called
> > ResponseInTime. Can anyone help. Thanks

>
> Because calculable data should never be stored in a table, the people
> who developed Access did not waste time creating utilities to make this
> easier.
>
> The right way to get this calculated field is in a query,or a form.
>
> =iif(ResponseDate > TargetDate, "NO","Yes") can be put in the Record
> Source property of a form or report textbox.
>
> ResponseInTime: if(ResponseDate > TargetDate, "NO","Yes") would be how
> to enter it in a query.
>
> If you insist in storing it in a field, put
> [ResponseInTime] = iif(ResponseDate > TargetDate, "NO","Yes")
> in the *After_Update Event's visual basic code for the two 'time'
> fields.
>
> --
> Bob Q.
> PA is y I've altered my address.


Thanks for the info, The field that I am entering is Unbound, works
great. thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
date field auto fill in =?Utf-8?B?dWZiY245NA==?= Microsoft Word Document Management 3 3rd Aug 2006 05:13 AM
Auto fill in date field on continuous forms Jim Microsoft Access 1 29th Jun 2006 03:02 PM
Date created field (auto current date fill-in) Lauri Microsoft Access Forms 3 13th Jul 2004 08:43 PM
Auto fill another field after entering date RichardS Microsoft Access Form Coding 3 24th Mar 2004 09:44 AM
Auto-Fill Date Field Kirstie Adam Microsoft Access Form Coding 2 24th Nov 2003 03:30 PM


Features
 

Advertising
 

Newsgroups
 


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