Thanks for your feedback.
Glad to be able to help

)
anlu
"Peter" wrote:
> Hi anlu...you are very correct..and i am very...impatient...i appologise..
> It works very well when you acctualy change the criterias everywhere in the
> code..:-):-)
>
> Thanks a lot anlu..you made my week!
>
> "Peter" wrote:
>
> > :-)
> >
> > now i recieve "compile error...) list separator expected...:-)
> >
> > i did include a space between the If and the DCount...
> >
> > strange...
> >
> > "anlu" wrote:
> >
> > > Hi Peter,
> > >
> > > In your original post, there was no space between "If" and "DCount" - if
> > > that is still the case, you will get the compile error.
> > > Could that be it?
> > >
> > > anlu
> > >
> > > "Peter" wrote:
> > >
> > > > Hi anlu, thanks for taking your time...however i do receive Compile error:
> > > > Expected: = at the >0
> > > >
> > > > Hmm
> > > >
> > > > "anlu" wrote:
> > > >
> > > > > Hi Peter,
> > > > >
> > > > > You should leave out the ' in the first argument - that is probably what
> > > > > generates the error. Also, if you want to use wild cards in your criteria,
> > > > > you should use "like" in stead of "=", otherwise you won't get many hits.
> > > > > I.e. your code should look like this:
> > > > >
> > > > > If DCount("*","FruitQuery","[Fruits] like '*" & Me.Search & "*'")>0 Then
> > > > >
> > > > >
> > > > > Regards,
> > > > > anlu