dawber39
asked on
Access report Record SOurce Query Syntax
Although it is uncommon - I need to put a huge query in a record source of a textbox on an access report - is this in the proper syntax?
SELECT Sum([qryPlanner-ProdMethod -WkREPORT] .Sales), Sum([qryPlanner-ProdMethod -WkREPORT] .Fcst)
FROM [qryPlanner-ProdMethod-WkR EPORT]
WHERE ((([qryPlanner-ProdMethod- WkREPORT]. WkBeginDat e)>=Date() -32)) OR ((([qryPlanner-ProdMethod- WkREPORT]. WkBeginDat e)<=Date() -6));
SELECT Sum([qryPlanner-ProdMethod
FROM [qryPlanner-ProdMethod-WkR
WHERE ((([qryPlanner-ProdMethod-
1) A Textbox does not have a Record Source, it has a Control Source.
2) You cannot put an SQL statement directly in a Text Box Control Source.
mx
2) You cannot put an SQL statement directly in a Text Box Control Source.
mx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent as always - Thank you people
ASKER