Question : Expression get value from Form into Query

hello,

i have a query where i want to get a value from a form into it. i want to be able to multiply that value times a field in a query.

query should look like this
Field:
Part # |  Quantity | Expr1: forms![machine].[Mult] | Expr1 * Quantity
abc        5                10                                            50
cde        6                10                                            60
der        2                 10                                            20

but i keep getting a small square on Expr1. its not reading properly. how can i correct this?

let me know if you need more information

Answer : Expression get value from Form into Query

Its all Exclamation marks -- Not Periods and  Exclamation.

Try this:
1:
2:
3:
4:
5:
SELECT  PartNum, forms![machine]![Mult] As Item, 
forms![machine]![Mult] *Quantity as TotQty
FROM MyTable
-- Optional
WHERE PartNum = 'aaa'
Open in New Window Select All
Random Solutions  
 
programming4us programming4us