Solved

formula question

Posted on 2012-04-10
13
245 Views
Last Modified: 2012-04-18
what does < Date() + 30 mean in access?
0
Comment
Question by:zachvaldez
13 Comments
 
LVL 6

Expert Comment

by:TRTurner
ID: 37828652
I believe it displays all records that are more than 30 days after the current date. Let me know if this helps.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37828668
<   means less than
Date()   is the current date (Today)
+30   means add 30 days

So it basically means:
Dates Before Today's Date + 30 days

In other words, if today is 1/15/2012, then Date()+30 would be roughly 2/15/2012
Then the formula reduces to <2/15/2012 (Less than 2/15/2012)
So this expression get all dates before (Less than)  2/15/2012

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37828687
Note that the Date() returns the current date, and is dynamic.

Meaning if today was 7/2/2015
The expression would get all dates before 8/2/2015

;-)

JeffCoachman
0
 

Author Comment

by:zachvaldez
ID: 37828996
I have a datefield type  with a value of say

03/06/2007 .. so

03/06/2007  < Date() + 30

what should be displayed or not displayed?
0
 
LVL 31

Expert Comment

by:Helen_Feddema
ID: 37829266
You are asking a question with that expression, so the return value would be True or False (probably not what you intend).  What are you trying to do here?
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 100 total points
ID: 37829457
Helen is correct, your question does not fit the expression....
Please explain *In Detail* exactly what you have, and exactly what you are trying to accomplish...

<Date()+30  would typically be put in a query as a date filter
Something like:
Only display records where SomeDate field is less than 2/15/2012

Examine this sample
Database115.mdb
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:zachvaldez
ID: 37829601
the expression will be something like


where ((workdatefield) < Date() + 30 )

so if workdatefield has  03/06/2007  for example...
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37829766
...Then 03/06/2007 will display
0
 

Author Comment

by:zachvaldez
ID: 37832784
not sure what that answer meant.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37833294
Not sure what your question meant...

Helen and I asked:
    "Please explain *In Detail* exactly what you have, and exactly what you are trying to accomplish..."
   "What are you trying to do here?"
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37835575
Remember, your question here was:
    <what does < Date() + 30 mean in access?>
Which I explained fully...
0
 

Author Comment

by:zachvaldez
ID: 37861103
The original question was answered correctly.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37861303
ok
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS Access 2007 Count Unique Values in a Group 5 35
Before insert Image (OLE) resize image 11 43
subtract 1 in Access 2003 query 7 39
Search Form not Querying 2 12
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now