Parmeter Box pop up!

sashapixie

Board Regular
Joined
Aug 29, 2013
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Hello There

I have the following query set up in my access 2013 database:

SELECT [PPE Products Detail Taken by Staff].[Product Description], [PPE Product List].Quantity, Sum([PPE Products Detail Taken by Staff].Quantity) AS SumOfQuantity, [PPE Product List]![Quantity]-[SumOfQuantity] AS [Stock Level]
FROM [PPE Product List] INNER JOIN [PPE Products Detail Taken by Staff] ON [PPE Product List].[Product ID] = [PPE Products Detail Taken by Staff].[Product Description]
GROUP BY [PPE Products Detail Taken by Staff].[Product Description], [PPE Product List].Quantity, [PPE Product List]![Quantity]-[SumOfQuantity];

Everytime I open the query the parameter pop up box appears asking for SumofQuantity, however when I run the query it works with no data needing to be entered, how can I stop this box appearing??

Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try replacing [SumOfQuantity] with Sum([PPE Products Detail Taken by Staff].Quantity) in the [Stock Level] expression and in the GROUP BY clause.
 
Upvote 0
Hi There Norie

If I do this then it does not calculate correctly, with SumofQuantity I get the below result

Product Description Quantity SumOfQuantity Stock Level
High Viz Vest - Large 20 11 9
Goggles 10 5 5

with the changes you mentioned in your post this then becomes

Product Description Quantity SumOfQuantity Stock Level
High Viz Vest - Large 20 10 10
High Viz Vest - Large 20 1 19
Goggles 10 4 8
Goggles 10 1 9

I want the top result which works with the Sum of Quantity I just don't want the pop up box.
 
Upvote 0

Forum statistics

Threads
1,221,889
Messages
6,162,624
Members
451,778
Latest member
ragananthony7911

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