Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link form field from query 1

Status
Not open for further replies.

VisaManiac

Technical User
Aug 12, 2001
14
US
I have a query that lists my order number and order total...

SELECT OrderNum, Sum([ProductPrice]*[Quantity]) AS OrderTotal
FROM OrderLines
GROUP BY OrderNum

Now, I'm trying to pull the OrderTotal field associated with that orderNum into my form, and my control source properties has the expression...

=[OrderLines_Calculation Query]!qryOrderSubTotal

But in form view it shows "#Name?" instead of my order total. Any suggestions why this might be? Input would be greatly appreciated!

Judy
 
Have a look at the DLookUp or DSum functions.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top