473,398 Members | 2,380 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,398 software developers and data experts.

Compare and count dates in access



This is kicking my @#$%. I have been asked to do a performance report
for our vendors. I need to compare and count dates.

1. Is called [del date on po] which is in a table named JOB DATES

2. Is called [ship date] which is in a table called SHIP LOGS

I need >,<, and = to the ship date.

PLEASE HELP

Ive tried queries forms and reports to do this but none seem to work.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #1
3 4776
Create a Query to retrieve the fields of interest, using appropriate
criteria to select the records you want, then in Design View of the Query,
on the menu, click View | Totals. One of the options will be Count.

If I have misunderstood your needs, please clarify and perhaps someone can
be of assistance.

Larry Linson
Microsoft Access MVP
"Michael Curtis" <mi**@faubionassoc.com> wrote in message
news:42**********@127.0.0.1...


This is kicking my @#$%. I have been asked to do a performance report
for our vendors. I need to compare and count dates.

1. Is called [del date on po] which is in a table named JOB DATES

2. Is called [ship date] which is in a table called SHIP LOGS

I need >,<, and = to the ship date.

PLEASE HELP

Ive tried queries forms and reports to do this but none seem to work.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #2
The count expression only outputed a 1 if the field had some data in it.
I need it to count the total records meeting my criteria.

Tried:

Expr1: Count(([del date on po]<[ship date]))

And it gives the 1's if it is there but i need the sum.

Also,

How to i reference that on the report, tried to querry it but that does
not work for me.

Thank you...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
Try

Expr1: Abs(Sum([del date on po]<[ship date]))
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Michael Curtis" <mi**@faubionassoc.com> wrote in message
news:42**********@127.0.0.1...
The count expression only outputed a 1 if the field had some data in it.
I need it to count the total records meeting my criteria.

Tried:

Expr1: Count(([del date on po]<[ship date]))

And it gives the 1's if it is there but i need the sum.

Also,

How to i reference that on the report, tried to querry it but that does
not work for me.

Thank you...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: alexis | last post by:
Hi, In a form I have the curent date <input name="datetoday" type="hidden" value="<? echo date("d/m/Y"); ?>"> and <input type=text name="datebox" size=15> The date format is d/m/Y...
9
by: geronimo_me | last post by:
Hi, I am atempting to compare part of a field with the whole of another field in access. Is this possible? Basically I have 2 tables with the following info: Table1 Field1 = MR.
5
by: Tom | last post by:
It appears that you can't compare two dates in DotNet. You must use ToString and compare the strings. Is that the only reliable way? Try this: Dim dteOne As Date =...
5
by: DW | last post by:
I have a query in Access 2003 that has the following criteria SELECT tblOrder.SessionDate, tblMenus.Item_Name, tblOrder.Type, Format$(tblorder!SessionDate,"Short Time") AS SessionTime,...
2
by: rocket | last post by:
I need to make a query that will be run everyday that will send an email on a persons birthday. The query needs to compare the day and month of his/her birthday to the current date, and if...
4
by: xiaowei | last post by:
I m writing some VB codes for my access database... Now I have a table which contains a "editDate" field, its format is "26/06/2007 11:12:34 AM", then I created a form which would ask the user to...
1
by: chungiemo | last post by:
Hi thought I would do another thread as this one is a bit different from the previous problem I am looking for a solution to the relating problem Comparing 2 access databases with 2 tables,...
31
by: Pramodpmenon | last post by:
Dear All, Can Some body help me on this, im just new to access, and now im trying to develop a database for Human resourses. The problem im facing is that, i need to check all the passport...
12
by: petter | last post by:
Hi! I have two questions: one question that regards the COUNT-function, and one about how to display a month even if I don’t have any data for that month. I have an Access database where I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.