Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax error on Filter 1

Status
Not open for further replies.

smuthcrmnl777

Technical User
Jan 16, 2006
104
US
I can not get this code to work. I am getting a syntax error, but I am not sure what I can do to fix this.


Code:
Me.Filter = [Date] = "Between '&[forms].[fM_ScrapControl].[start]&' And '&[forms].[fM_ScrapControl].[end]&'"
Me.FilterOn = True

Thanks very much!!

 
Perhaps this ?
Me.Filter = "[Date] Between #" & [Forms]![fM_ScrapControl]![start] & "# And #" & [Forms]![fM_ScrapControl]![end] & "#"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top