PC Review


Reply
Thread Tools Rate Thread

How to create a Yes/No module based on dates

 
 
=?Utf-8?B?R3JhbmRBZG1pcmFs?=
Guest
Posts: n/a
 
      3rd Mar 2005
I want to create a module that will tell me if the date entered in one field
is before a date that is entered into another.

Example: A client has until 02/22/2005 to turn in a payment (entered into
Due Date field). The payment is received on 02/24/2005 (entered into Payment
Received field). This would result in the module marking "No" in the On Time
field.

Can anyone assist with this or did I post to the wrong community?
 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      3rd Mar 2005
GrandAdmiral wrote:

>I want to create a module that will tell me if the date entered in one field
>is before a date that is entered into another.
>
>Example: A client has until 02/22/2005 to turn in a payment (entered into
>Due Date field). The payment is received on 02/24/2005 (entered into Payment
>Received field). This would result in the module marking "No" in the On Time
>field.



Your question is in the right group, but I don't see a need
for a module. The OnTime text box can just use an
expression to do that:

=IIf(DueDate < PaymentReceived, "No", "Yes")

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
=?Utf-8?B?R3JhbmRBZG1pcmFs?=
Guest
Posts: n/a
 
      8th Mar 2005
How do you set this up? This is my first time dealing with this. Also, can
the box be configured for as cetain timeframe? Ex. Was the payment made 30
days before the Due Date?

"Marshall Barton" wrote:

> GrandAdmiral wrote:
>
> >I want to create a module that will tell me if the date entered in one field
> >is before a date that is entered into another.
> >
> >Example: A client has until 02/22/2005 to turn in a payment (entered into
> >Due Date field). The payment is received on 02/24/2005 (entered into Payment
> >Received field). This would result in the module marking "No" in the On Time
> >field.

>
>
> Your question is in the right group, but I don't see a need
> for a module. The OnTime text box can just use an
> expression to do that:
>
> =IIf(DueDate < PaymentReceived, "No", "Yes")
>
> --
> Marsh
> MVP [MS Access]
>

 
Reply With Quote
 
=?Utf-8?B?R3JhbmRBZG1pcmFs?=
Guest
Posts: n/a
 
      8th Mar 2005
How do you set this up? This is my first time dealing with this. Also, can
the box be configured for as cetain timeframe? Ex. Was the payment made 30
days before the Due Date?

"Marshall Barton" wrote:

> GrandAdmiral wrote:
>
> >I want to create a module that will tell me if the date entered in one field
> >is before a date that is entered into another.
> >
> >Example: A client has until 02/22/2005 to turn in a payment (entered into
> >Due Date field). The payment is received on 02/24/2005 (entered into Payment
> >Received field). This would result in the module marking "No" in the On Time
> >field.

>
>
> Your question is in the right group, but I don't see a need
> for a module. The OnTime text box can just use an
> expression to do that:
>
> =IIf(DueDate < PaymentReceived, "No", "Yes")
>
> --
> Marsh
> MVP [MS Access]
>

 
Reply With Quote
 
Marshall Barton
Guest
Posts: n/a
 
      8th Mar 2005
Just use the expression I posted earlier in the text box's
ControlSource property.

As for adding conditions, you can check for multiple
conditions in the IIf function in various ways (including
nesting one IIf inside another. You never said how you want
the due date to relate to the Yes or No, but heres one way:

=IIf(DueDate < PaymentReceived, "No", IIf(DueDate <
PaymentReceived + 30, "Early", "Yes")
--
Marsh
MVP [MS Access]



GrandAdmiral wrote:
>How do you set this up? This is my first time dealing with this. Also, can
>the box be configured for as cetain timeframe? Ex. Was the payment made 30
>days before the Due Date?
>
>
>> GrandAdmiral wrote:
>> >I want to create a module that will tell me if the date entered in one field
>> >is before a date that is entered into another.
>> >
>> >Example: A client has until 02/22/2005 to turn in a payment (entered into
>> >Due Date field). The payment is received on 02/24/2005 (entered into Payment
>> >Received field). This would result in the module marking "No" in the On Time
>> >field.

>>
>>

>"Marshall Barton" wrote:
>> Your question is in the right group, but I don't see a need
>> for a module. The OnTime text box can just use an
>> expression to do that:
>>
>> =IIf(DueDate < PaymentReceived, "No", "Yes")


 
Reply With Quote
 
=?Utf-8?B?R3JhbmRBZG1pcmFs?=
Guest
Posts: n/a
 
      3rd Aug 2005
Sorry it's been a while since I posted regarding my success with this, but
here's my next question. I want to have this calculation housed in a query
design. It's not allowing me to use the initial formula.

Thanks again.

"Marshall Barton" wrote:

> Just use the expression I posted earlier in the text box's
> ControlSource property.
>
> As for adding conditions, you can check for multiple
> conditions in the IIf function in various ways (including
> nesting one IIf inside another. You never said how you want
> the due date to relate to the Yes or No, but heres one way:
>
> =IIf(DueDate < PaymentReceived, "No", IIf(DueDate <
> PaymentReceived + 30, "Early", "Yes")
> --
> Marsh
> MVP [MS Access]
>
>
>
> GrandAdmiral wrote:
> >How do you set this up? This is my first time dealing with this. Also, can
> >the box be configured for as cetain timeframe? Ex. Was the payment made 30
> >days before the Due Date?
> >
> >
> >> GrandAdmiral wrote:
> >> >I want to create a module that will tell me if the date entered in one field
> >> >is before a date that is entered into another.
> >> >
> >> >Example: A client has until 02/22/2005 to turn in a payment (entered into
> >> >Due Date field). The payment is received on 02/24/2005 (entered into Payment
> >> >Received field). This would result in the module marking "No" in the On Time
> >> >field.
> >>
> >>

> >"Marshall Barton" wrote:
> >> Your question is in the right group, but I don't see a need
> >> for a module. The OnTime text box can just use an
> >> expression to do that:
> >>
> >> =IIf(DueDate < PaymentReceived, "No", "Yes")

>
>

 
Reply With Quote
 
=?Utf-8?B?R3JhbmRBZG1pcmFs?=
Guest
Posts: n/a
 
      3rd Aug 2005
Forget it. Answered my own question. I figured it out.

"GrandAdmiral" wrote:

> Sorry it's been a while since I posted regarding my success with this, but
> here's my next question. I want to have this calculation housed in a query
> design. It's not allowing me to use the initial formula.
>
> Thanks again.
>
> "Marshall Barton" wrote:
>
> > Just use the expression I posted earlier in the text box's
> > ControlSource property.
> >
> > As for adding conditions, you can check for multiple
> > conditions in the IIf function in various ways (including
> > nesting one IIf inside another. You never said how you want
> > the due date to relate to the Yes or No, but heres one way:
> >
> > =IIf(DueDate < PaymentReceived, "No", IIf(DueDate <
> > PaymentReceived + 30, "Early", "Yes")
> > --
> > Marsh
> > MVP [MS Access]
> >
> >
> >
> > GrandAdmiral wrote:
> > >How do you set this up? This is my first time dealing with this. Also, can
> > >the box be configured for as cetain timeframe? Ex. Was the payment made 30
> > >days before the Due Date?
> > >
> > >
> > >> GrandAdmiral wrote:
> > >> >I want to create a module that will tell me if the date entered in one field
> > >> >is before a date that is entered into another.
> > >> >
> > >> >Example: A client has until 02/22/2005 to turn in a payment (entered into
> > >> >Due Date field). The payment is received on 02/24/2005 (entered into Payment
> > >> >Received field). This would result in the module marking "No" in the On Time
> > >> >field.
> > >>
> > >>
> > >"Marshall Barton" wrote:
> > >> Your question is in the right group, but I don't see a need
> > >> for a module. The OnTime text box can just use an
> > >> expression to do that:
> > >>
> > >> =IIf(DueDate < PaymentReceived, "No", "Yes")

> >
> >

 
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
Trying to create an overdue message based on set dates =?Utf-8?B?Q3JhaWc=?= Microsoft Excel Misc 5 23rd Nov 2007 04:05 PM
how can I do this in Excel...create dates for tasks based on a date (long) hamiltoncruiser Microsoft Excel Misc 2 1st Oct 2007 02:27 AM
How do I create a commission chart based on dates worked? =?Utf-8?B?T3JhbmdlIFBlZ3MgaW4gQ2Vycml0b3M=?= Microsoft Excel Worksheet Functions 0 4th Jan 2006 12:19 AM
CREATE A SUM BASED ON DATES =?Utf-8?B?R29yZG9uLkZlcmd1c29u?= Microsoft Excel Worksheet Functions 1 23rd Aug 2005 09:26 AM
Create a Pivot Table based on From and To Dates Uri Teitler Microsoft Excel Programming 0 21st Nov 2003 06:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 AM.