S
Seth
Text box on sub form is displaying “#Name?â€
On my main form frmTestRprts, I have a subform (continuos view)
Name: subTestRprtStds
Source Object: fsubTestRprtStds
fsubTestRprtStds has two text box controls
txtStd ( bound to table )
txtStdRefNum ( Control Source =[qryStd]![fldStdRefNum] )
The WHERE clause of Query qryStd refers to txtStd.
The query works as intended if I run it without the forms open and enter the
value manually. But when I try and refer to txtStd on the subform text box
txtStdRefNum dispays “#Name?â€
SELECT tblStdAmds.fldStdID, tblStdAmds.fldStdRefNum,
tblStdAmds.fldStdIssueDate, tblStdAmds.fldStdAmd
FROM tblStdAmds
WHERE
(((tblStdAmds.fldStdID)=[Forms]![frmTestRprts]![subTestRprtStds].[Forms]![txtStd]));
Thanks for any help.
Seth
On my main form frmTestRprts, I have a subform (continuos view)
Name: subTestRprtStds
Source Object: fsubTestRprtStds
fsubTestRprtStds has two text box controls
txtStd ( bound to table )
txtStdRefNum ( Control Source =[qryStd]![fldStdRefNum] )
The WHERE clause of Query qryStd refers to txtStd.
The query works as intended if I run it without the forms open and enter the
value manually. But when I try and refer to txtStd on the subform text box
txtStdRefNum dispays “#Name?â€
SELECT tblStdAmds.fldStdID, tblStdAmds.fldStdRefNum,
tblStdAmds.fldStdIssueDate, tblStdAmds.fldStdAmd
FROM tblStdAmds
WHERE
(((tblStdAmds.fldStdID)=[Forms]![frmTestRprts]![subTestRprtStds].[Forms]![txtStd]));
Thanks for any help.
Seth