A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Identify closed/finalized records the month they were opened Acces



 
 
Thread Tools Display Modes
  #1  
Old November 19th, 2009, 04:07 PM posted to microsoft.public.access.queries
mp80237[_2_]
external usenet poster
 
Posts: 7
Default Identify closed/finalized records the month they were opened Acces

Hello

I have a query, qryClosedRecords, where I need to report if the records
finalized/closed the same month they opened.

So if it opened #10/05/2009 06:05# and finalized/closed #10/25/2009 21:59# I
need to mark it as being finalized/closed the month it was open.

Field for Date Opened = qryClosedRecords.open_time
Field for Date closed = qryClosedRecords.finalized_time

And if it opened #08/03/2009 21:25# and finalized/closed #9/23/2009 12:45# I
don't want to count it because it didn't finalize/close the month it was
opened.

I need to do this in a query because I will be taking this data into a
crosstab query, then pulling it into excel thru a macro, which I already have
setup. This is strickly for reporting. There will be no end user viewing
this, no forms will be created.


Identify closed/finalized records the month they were opened using Microsoft
Access


  #2  
Old November 19th, 2009, 04:26 PM posted to microsoft.public.access.queries
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Identify closed/finalized records the month they were opened Acces

The criteria you need is:
month(qryClosedRecords.open_time) = month(qryClosedRecords.finalized_time)

I would also match the year if there is a chance that the finalized_time
could be a year later.

--
Daryl S


"mp80237" wrote:

Hello

I have a query, qryClosedRecords, where I need to report if the records
finalized/closed the same month they opened.

So if it opened #10/05/2009 06:05# and finalized/closed #10/25/2009 21:59# I
need to mark it as being finalized/closed the month it was open.

Field for Date Opened = qryClosedRecords.open_time
Field for Date closed = qryClosedRecords.finalized_time

And if it opened #08/03/2009 21:25# and finalized/closed #9/23/2009 12:45# I
don't want to count it because it didn't finalize/close the month it was
opened.

I need to do this in a query because I will be taking this data into a
crosstab query, then pulling it into excel thru a macro, which I already have
setup. This is strickly for reporting. There will be no end user viewing
this, no forms will be created.


Identify closed/finalized records the month they were opened using Microsoft
Access


  #3  
Old November 25th, 2009, 04:30 PM posted to microsoft.public.access.queries
mp80237
external usenet poster
 
Posts: 11
Default Identify closed/finalized records the month they were openedAcces



Thank you so much! It worked
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.