Originally Posted by
veiko
...Only option is it change "textbox" value(delete last 6 characters) before it will searching data...
Much of your explanation is still not clear, but if the above statement is the core of what you're trying to accomplish, June7's example
Left(Me.textboxname, Len(Me.textboxname)-6)
will do the job once you replace textboxname with the actual name of your Textbox.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007