S
Sid
Ok, I thought I had this SQL QueryDef syntax thing mastered until the date
aspect. This is a section of my test query.
(Works great with Actual times
....AND ((TimeValue([TimeOn])) BETWEEN #08:00# AND #14:30#
But, referring to a form's controls I fail with:
...AND ((TimeValue([TimeOn])) BETWEEN #(Me!Sh1B)# AND #(Me!Sh1E)#
or
....AND ((TimeValue([TimeOn])) BETWEEN #" & (Me!Sh1B) & "# And #" &(Me!Sh1E)
& "#
The Syntax Error message cursor is always left at the end past my last #.
I have tried variations of the """" like my other string control values
also...
Any suggestions appreciated
Sid
aspect. This is a section of my test query.
(Works great with Actual times
....AND ((TimeValue([TimeOn])) BETWEEN #08:00# AND #14:30#
But, referring to a form's controls I fail with:
...AND ((TimeValue([TimeOn])) BETWEEN #(Me!Sh1B)# AND #(Me!Sh1E)#
or
....AND ((TimeValue([TimeOn])) BETWEEN #" & (Me!Sh1B) & "# And #" &(Me!Sh1E)
& "#
The Syntax Error message cursor is always left at the end past my last #.
I have tried variations of the """" like my other string control values
also...
Any suggestions appreciated
Sid