Prompt Order

Moxioron

Active Member
Joined
Mar 17, 2008
Messages
436
Office Version
  1. 2019
Below is SQL that works great, except the order that the operator is prompted to enter data.

Even though in the design view [# of Days in the Month] is at the end, the prompt is first.

I want [Start Date]And[End Date] to be first.....where am I going wrong? Thanks.

SELECT [tbl_Individual Return Performance Scorecard Data].Function, [tbl_Individual Return Performance Scorecard Data].UserID, [tbl_Returns Associates].[Associate Name], [tbl_Individual Return Performance Scorecard Data].Queue, [tbl_Individual Return Performance Scorecard Data].Volume, IIf(IsNull([Time]),0,[Time]/3600) AS Expr1, [tbl_Queus and SLAs].SLA, [# of Days in the Month] AS Expr2, [Volume]/[Expr1] AS Expr3, [Expr3]/[SLA] AS Expr4
FROM [tbl_Queus and SLAs] RIGHT JOIN ([tbl_Individual Return Performance Scorecard Data] LEFT JOIN [tbl_Returns Associates] ON [tbl_Individual Return Performance Scorecard Data].UserID = [tbl_Returns Associates].[User ID]) ON ([tbl_Queus and SLAs].[Queue Number] = [tbl_Individual Return Performance Scorecard Data].Queue) AND ([tbl_Queus and SLAs].Function = [tbl_Individual Return Performance Scorecard Data].Function)
WHERE ((([tbl_Individual Return Performance Scorecard Data].Date) Between [Start Date] And [End Date]))
GROUP BY [tbl_Individual Return Performance Scorecard Data].Function, [tbl_Individual Return Performance Scorecard Data].UserID, [tbl_Returns Associates].[Associate Name], [tbl_Individual Return Performance Scorecard Data].Queue, [tbl_Individual Return Performance Scorecard Data].Volume, [tbl_Queus and SLAs].SLA, [tbl_Individual Return Performance Scorecard Data].Time
HAVING ((([tbl_Individual Return Performance Scorecard Data].Function) Like [Function Name] & "*") AND (([tbl_Individual Return Performance Scorecard Data].UserID) Like [RACF] & "*"));
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,224,609
Messages
6,179,875
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top