<DISCLAIMER: Yes, I did search the forum first on this topic.>
I've built an expression that parses out the date portion of a text field (esign), the expression is named EsignDate in the query and the query runs fine, returning the date portion.
(see expression below)
EsignDate: LTrim(Right([esign],Len([tblvalvular].[esign])-(InStr(1,[tblvalvular].[esign],":"))))
This parses the text field (example data is:
INPUT
esign = Samuel A. Wickline, MD signed on:8/13/2003
OUTPUT
EsignDate = 8/13/2003
My problem is, I'd like to be able to apply criteria, prompting the user for a start date and end date, but when I put
Between [first] And [second]
in the criteria field of the query for the above expression, I get:
"This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables."
I understand what the msg is telling me to do... but I've no clue how to simply the expression or solve this.
Can anyone give me suggestions?
Thanks!
Taz
I've built an expression that parses out the date portion of a text field (esign), the expression is named EsignDate in the query and the query runs fine, returning the date portion.
(see expression below)
EsignDate: LTrim(Right([esign],Len([tblvalvular].[esign])-(InStr(1,[tblvalvular].[esign],":"))))
This parses the text field (example data is:
INPUT
esign = Samuel A. Wickline, MD signed on:8/13/2003
OUTPUT
EsignDate = 8/13/2003
My problem is, I'd like to be able to apply criteria, prompting the user for a start date and end date, but when I put
Between [first] And [second]
in the criteria field of the query for the above expression, I get:
"This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables."
I understand what the msg is telling me to do... but I've no clue how to simply the expression or solve this.
Can anyone give me suggestions?
Thanks!
Taz