Solved

ACCESS 2003 sql statement in query

Posted on 2014-01-23
1
457 Views
Last Modified: 2014-01-23
I have an
Complete Hour Status: IIf([CompleteProcessHr]<13,"Completed By 1 pm",IIf([CompleteProcessHr]<14,"Completed By 2 pm",IIf([CompleteProcessHr]<15,"Completed By 3 pm",IIf([CompleteProcessTime]<#4:31:00 PM#,"Completed By 4 pm","Completed AFTER 4  pm"))))
 ACCESS 2003 query where I need a stmt to  group by the hour except for one of the IIF which groups by hour and minute.   See my stmt below.  it results in #ERROR.  

Help.  I know the issue is with IIf([CompleteProcessTime]<#4:31:00 PM#,"Completed By 4 pm" as if I remove this portion of the stmt the query works.

HELP  Thank You
0
Comment
Question by:eyes59
1 Comment
 

Accepted Solution

by:
eyes59 earned 0 total points
ID: 39805480
I have an
 ACCESS 2003 query where I need a stmt to  group by the hour except for one of the IIF which groups by hour and minute.   See my stmt below.  it results in #ERROR.  

Complete Hour Status: IIf([CompleteProcessHr]<13,"Completed By 1 pm",IIf([CompleteProcessHr]<14,"Completed By 2 pm",IIf([CompleteProcessHr]<15,"Completed By 3 pm",IIf([CompleteProcessTime]<#4:31:00 PM#,"Completed By 4 pm","Completed AFTER 4  pm"))))


Help.  I know the issue is with IIf([CompleteProcessTime]<#4:31:00 PM#,"Completed By 4 pm" as if I remove this portion of the stmt the query works.

HELP  Thank You
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

825 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