Hello,
I just started using Dlookup but seemed to have hit a snag and not sure how to fix it.
I have a form with a text box for the date and a subform datasheet. The subform shows data that corresponds to the date in the text box. I wanted the textbox to show the next date that was greater than today, so I set its default value as:
=DLookUp("Interview_Date","Interview_Schedule","Interview_Date > Date()")
Now it works fine until I add a new record to the table. It appears the Dlookup is also going by my primary key ID when it looks up the date field. So when I add a new date(record), it ends up with a larger primary ID and it returns an existing older date with lower primary ID.
Hope that makes sense,
Thanks in Advance,
Ryan
I just started using Dlookup but seemed to have hit a snag and not sure how to fix it.
I have a form with a text box for the date and a subform datasheet. The subform shows data that corresponds to the date in the text box. I wanted the textbox to show the next date that was greater than today, so I set its default value as:
=DLookUp("Interview_Date","Interview_Schedule","Interview_Date > Date()")
Now it works fine until I add a new record to the table. It appears the Dlookup is also going by my primary key ID when it looks up the date field. So when I add a new date(record), it ends up with a larger primary ID and it returns an existing older date with lower primary ID.
Hope that makes sense,
Thanks in Advance,
Ryan