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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

past due billing query 1

Status
Not open for further replies.

brandys

MIS
Dec 12, 2002
6
US
I am building a past due billing query that pulls recorda that are 30, 60 or 90 days past due. The problem that I am having is the query for the 30 day is pulling all records for 30 days or more not for just the 30 day. The same for the 60. It pulls records for 60 and above. The criteria for the 30 day query (in the bill date field) <=date()-30. This is repeated for the 60 and 90 day queries as well. I have tried several things to get past this but I am coming up with nothing that is working. Please Help.
 
You need to set it to 'Between Date()-60 and Date()-30' for the 30 days to work right. Otherwise, you are telling it to find everything earlier than 30 days ago.

HTH
Geekmomz
 
I tried putting in between date()-60 and date()-30 and it did not pull the records that were 30 days past due. Did i do something wrong again?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top