Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Age & Past Due

Status
Not open for further replies.

Cleis

Technical User
Jun 4, 2000
197
US
Hello group!

I have created a query that allows me to calculate how long it takes for me receive payments from my suppliers (via a crosstab query). Now I want to use the following w/o hardcoding the 7/31/2007. How do I make the year a variable without using the DateSerial() function?

Take a peek at this:

Jul1: IIf(IsNull([Jul]),DateDiff("d",Date(),#7/31/2007# -[AVG Of DaysOutstanding]),[Jul])

Yes this does work but it's
 




Hi,

This is not a VBA question.

"Now I want to use the following w/o hardcoding the 7/31/2007"

What does 7/31/2007 represent, on this, the 6[sup]th[/sup] of October?

Skip,
[sub]
[glasses] When a group touring the Crest Toothpaste factory got caught in a large cooler, headlines read...
Tooth Company Freeze a Crowd! and
Many are Cold, but Few are Frozen![tongue][/sub]
 
What are you attempting to calculate? What is the SQL view of your crosstab?

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top