today()

  • Thread starter Thread starter Guest
  • Start date Start date
Hi pgarcia,

If you subtract today;s date from 2/1/2007 you will get a negative number,
as today is after 2/1. Again, what are you trying to achieve?

Check out the datediff function perhaps.

Damian.
 
You don't say what you are using to perform the calc (Form, Query or Report)?

For a unbound textBox on a form or report

Select the properties of a textbox on a form or a report and type in the
Control Source row
=Date()-#02/01/2007#

hth Mike B

--
An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.
 
Damian is right, I read the question round the wrong way

#2/1/2007#-Date() will be a negative number
--
An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.
 
It's a form and I used (thanks any was):

Expr1: DateDiff("d",[Transaction_Date],Now())

But now that I have that, how can I do the following?

=IIF(AND([Expr1]>30,Expr1<=60),[Amount Due Remaining/Applied],0)
 
Sorry, it's a form, but I did find out how to do it.

Expr1: DateDiff("d",[Transaction_Date],Now())

But now that I have that. How can I do the following:

=IIF(AND([Expr1:]>30,[Expr1:]<=60),[Amount Due Remaining/Applied],0)

I'm a lot better ai Excel
 
try this one

=IIf([Expr1]>30,IIf([Expr1]<=60,[Amount Due Remaining/Applied],0),0)

Again hth????

Best Regards Mike B
--
An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.


pgarcia said:
Sorry, it's a form, but I did find out how to do it.

Expr1: DateDiff("d",[Transaction_Date],Now())

But now that I have that. How can I do the following:

=IIF(AND([Expr1:]>30,[Expr1:]<=60),[Amount Due Remaining/Applied],0)

I'm a lot better ai Excel




MikeJohnB said:
You don't say what you are using to perform the calc (Form, Query or Report)?

For a unbound textBox on a form or report

Select the properties of a textbox on a form or a report and type in the
Control Source row
=Date()-#02/01/2007#

hth Mike B

--
An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.
 
Expr1: DateDiff("d",[Transaction_Date],Now())

But now that I have that, how can I do the following?

=IIF(AND([Expr1]>30,Expr1<=60),[Amount Due Remaining/Applied],0)

That looks like a valid Excel expression - but Access and Excel are
different programs with different syntax.

Try

=IIf(DateDiff("d', [Transaction_Date], Date()) > 30 And DateDiff("d',
[Transaction_Date], Date()) <= 60, ,[Amount Due Remaining/Applied],0)


John W. Vinson [MVP]
 
That worked Great, THANKS!!

MikeJohnB said:
try this one

=IIf([Expr1]>30,IIf([Expr1]<=60,[Amount Due Remaining/Applied],0),0)

Again hth????

Best Regards Mike B
--
An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.


pgarcia said:
Sorry, it's a form, but I did find out how to do it.

Expr1: DateDiff("d",[Transaction_Date],Now())

But now that I have that. How can I do the following:

=IIF(AND([Expr1:]>30,[Expr1:]<=60),[Amount Due Remaining/Applied],0)

I'm a lot better ai Excel




MikeJohnB said:
You don't say what you are using to perform the calc (Form, Query or Report)?

For a unbound textBox on a form or report

Select the properties of a textbox on a form or a report and type in the
Control Source row
=Date()-#02/01/2007#

hth Mike B

--
An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all,
you have shouted at and blamed the innocent,
and asked everyone you know,

READ THE INSTRUCTION MANUAL.


:

I need to subtract today’s date from 2/1/2007.
 

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


Back
Top