
Originally Posted by
ssanfu
I should learn to read better.
In a query, you don't refer to a control on a
form, but to a field in the query (in this instance). For criteria in a query, you can refer to a control on a form.
So the column in the query should be:
Code:
SomeName:IIf(Len(Trim([BidDateSelection] & ""))=0,"7/19/2012",[BidDateSelection])
Change "
SomeName" to what you want the column name to be.
I'm a little confused. I understand that I need to add that as a new column, which I did as below:
Code:
SomeName: IIf(Len(Trim([Forms]![frmBids]![BidDateSelection] & ""))=0,"7/19/2012",[Forms]![frmBids]![BidDateSelection])
But then do I have to set my original field, which is BidDate, equal to "SomeName" in order to get the query to pull the selected date?