greggranger
MIS
I currently have a form which allows the user to input a date parameter in an unbound text box; I’ll refer to this unbound text box as unbDate.
I am attempting to use the DLookup function in the ValidationRule property of the unbDate object to determine whether the date value entered into the unbDate object exists in Table1’s Period Date column. Below is the syntax I’m using in the ValidationRule property.
(DLookUp("[Period Date]", "Table1","[Period Date] = [Forms]![frmAppendRecords]![unbPerEndingDate] ")) Is Null
Basically, if the date entered into the unbDate object exists in Table1, I’d like the ValidationText to appear and the subsequent activity halted. If the date entered into the unbDate object does not exist, the user may proceed.
When I open the form, enter a date, and tab out of the unbDate object, the ValidationRule does not execute and the following error appears:
There is a " in the form control's ValidationRule Property.
I am using this same logic in an .mdb database and it works fine. I have searched previous tek-tips posts and have found nothing! Any help is greatly appreciated since I’m at a loss on how to attack this.
Thank You!
I am attempting to use the DLookup function in the ValidationRule property of the unbDate object to determine whether the date value entered into the unbDate object exists in Table1’s Period Date column. Below is the syntax I’m using in the ValidationRule property.
(DLookUp("[Period Date]", "Table1","[Period Date] = [Forms]![frmAppendRecords]![unbPerEndingDate] ")) Is Null
Basically, if the date entered into the unbDate object exists in Table1, I’d like the ValidationText to appear and the subsequent activity halted. If the date entered into the unbDate object does not exist, the user may proceed.
When I open the form, enter a date, and tab out of the unbDate object, the ValidationRule does not execute and the following error appears:
There is a " in the form control's ValidationRule Property.
I am using this same logic in an .mdb database and it works fine. I have searched previous tek-tips posts and have found nothing! Any help is greatly appreciated since I’m at a loss on how to attack this.
Thank You!