Query

josros60

Well-known Member
Joined
Jun 27, 2010
Messages
786
Office Version
  1. 365
I have form to calculate qty. on hand it works giving me the quantity on hand but every time i open the form ask for parameter value, how can i fix this?

here it's the expression:

HTML:
OnHand: OnHand([pkProductID],Forms!FrmStockTakes!StockTakeDate)
and here it's the sql view:

Code:
SELECT tblProducts.ProductName, OnHand([pkProductID],Forms!FrmStockTakes!StockTakeDate) AS OnHand, tblProducts.pkProductID, tblProducts.UNIT, tblProducts.QuantityPerUnit, tblProducts.UnitPrice
FROM tblProducts;

Thank you
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
I assume that you get asked for Forms!FrmStockTakes!StockTakeDate each time?

If so, that is most likely because the form is not open. Another option is that you have a typo in a field name.

If it's the open form issue, create a button on FrmStockTakes that opens the query, and run it from there.

Denis
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

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