Hi, I have the Form with details below.
Form name - [MOC Creation Stats]
Query used in the form - [CREATED_STATISTICS]
Parameter name - [MOC Number Starts With]
Query -
PARAMETERS [MOC Number Starts With] Text ( 255 );
TRANSFORM Count(MonthName(Month([CREATED DATE]))) AS ['NUMBER']
SELECT MonthName(Month([CREATED DATE])) AS ['MONTH'], Count(MOC_DATA.[MOC NUMBER]) AS [Total Of MOC_NUMBER]
FROM MOC_DATA
WHERE (((MOC_DATA.[MOC NUMBER]) Like "*" & [MOC Number Starts With] & "*"))
GROUP BY MonthName(Month([CREATED DATE])), Month([CREATED DATE])
ORDER BY Month([CREATED DATE])
PIVOT MOC_DATA.ASSET;
When the report is loaded, it asks for Paramater value MOC number stats with :
I want to populate the textbox as below
If value entered is CR12 - then 2012
If value entered is CR13 - then 2013
If value entered is CR14 - then 2014
If value entered is blank - overall
Please advise.
----------------------
My tries as below.
1. Set Control Source of textbox to =[Reports]![MOC CREATION STATS]![MOC Number Starts With].
this doesnt work. In turn i get #Name? in my textbox.