I have a textbox control on a subform and I am trying to get it's text or value into a query. The users are entering a date into this textbox.
This is how I am referencing the textbox:
When I reference the textbox in an IIf, it works. If I just try to
it returns null or empty.
AstProfileFrm is the Main form.
AstProfileWhatI fSbfrm is the name of the Sub form.
SepDateInputTxt is the name of the control
Does anyone know what's going on here? Or why it may work in the IIf and not elsewhere?
This is how I am referencing the textbox:
Code:
[Forms]![AstProfileFrm]![AstProfileWhatIfSbfrm].[Form]![SepDateInputTxt]
Code:
SELECT [Forms]![AstProfileFrm]![AstProfileWhatIfSbfrm].[Form]![SepDateInputTxt] AS DateField
AstProfileFrm is the Main form.
AstProfileWhatI fSbfrm is the name of the Sub form.
SepDateInputTxt is the name of the control
Does anyone know what's going on here? Or why it may work in the IIf and not elsewhere?
Comment