473,394 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

count 30 days queries

20
hi
Can some one help me with a query?
I have a database named login1 with a table called orderoil. i am looking to get the clients details in a table if they have not paid there bill after 30 days.
I have a Purchase_Date this tells u wat date they ordered the oil what other fields do i need for it to count 30 days and tell u that the account is over due.

Please help for a project worth 70%

Thanks claire
Apr 29 '07 #1
6 1381
harky
20
how do i get the query to run?
Apr 29 '07 #2
harky
20
hi
im looking to run a query, i need it to read so that after 30 days it will show who has not paid there bill.

thanks claire
Apr 29 '07 #3
nico5038
3,080 Expert 2GB
Guess you have a "PayDate" to test for the payments and a "SubcriptionDate" to validate the period of 30 days.
Just use a WHERE like:

WHERE Date() - PayDate >=30 and IsNull(SubscriptionDate)

Getting the idea ?

Nic;o)
Apr 29 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
Hi Claire

Please do not double post your questions. Please see the FAQ on this issue. I have merged the two threads.

ADMIN
Apr 30 '07 #5
harky
20
Where do i put this code???
im new to this


Guess you have a "PayDate" to test for the payments and a "SubcriptionDate" to validate the period of 30 days.
Just use a WHERE like:

WHERE Date() - PayDate >=30 and IsNull(SubscriptionDate)

Getting the idea ?

Nic;o)
Apr 30 '07 #6
nico5038
3,080 Expert 2GB
You can open the query when in the editor to show the SQL text (See the query menu) and specify the WHERE clause.
After switching back into the graphical mode you'll see how it words graphically.
Just make sure that the fieldnames are correctly spelled !

Nic;o)
Apr 30 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: jimfortune | last post by:
I have an A97 module called modWorkdayFunctions in: http://www.oakland.edu/~fortune/WorkdayFunctions.zip It allows the counting of workdays taking into consideration up to 11 U.S. holidays. ...
2
by: Bobwhosmiles | last post by:
Hi, I use access to query a Jet database full of info about members of a club. Each attendance by each member at any of 18 sites is recorded in a table called qptHisAttendance I'm trying to...
1
by: zafm86 | last post by:
Hi everyone! I'm sure my problem is pretty easy to solve but I've been working on it for a long and my my brain is not working correctly anymore. I'm working with an AS400 and I mhave to do an...
7
by: CampbellJD1 | last post by:
I am using Access 2003 Professional. I have been working with Access for some time and I have created an MDB with a Linked Table and the Data there is temporarily transferred to other Table for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.