InfoPath's out-of-the-box querying mechanism looks for exact matches, so
you'll have to write code to do the querying if you want to search on partial
information. There are several samples posted in this newsgroup that show you
how to do the latter.
---
S.Y.M. Wong-A-Ton
> I am trying to create a form based on an Access Database of computer
> equipment. How can I set he form so that when you do a query, you can put in
[quoted text clipped - 4 lines]
> Thank you for your help,
> D
D - 08 May 2006 18:35 GMT
Thank you. I had a feeling that was going to be the answer. I am just
starting to use InfoPath and I'm not really sure how to play with the code.
I was hoping there was a tool in InfoPath itself.
Thank you again,
D
> InfoPath's out-of-the-box querying mechanism looks for exact matches, so
> you'll have to write code to do the querying if you want to search on partial
[quoted text clipped - 11 lines]
> > Thank you for your help,
> > D
AP - 29 Sep 2006 22:31 GMT
where and how do you add this partial search code?
> InfoPath's out-of-the-box querying mechanism looks for exact matches, so
> you'll have to write code to do the querying if you want to search on partial
[quoted text clipped - 11 lines]
> > Thank you for your help,
> > D
D - 30 Sep 2006 00:58 GMT
The user would type in the words or numbers to search in a particular field
in the query section of the form. Is that what you are asking?
-D
> where and how do you add this partial search code?
>
[quoted text clipped - 13 lines]
> > > Thank you for your help,
> > > D
AP - 30 Sep 2006 01:46 GMT
i was wondering how to get the code into the infopage, and where i could get
some examples of this code
Thanks
AP
> The user would type in the words or numbers to search in a particular field
> in the query section of the form. Is that what you are asking?
[quoted text clipped - 18 lines]
> > > > Thank you for your help,
> > > > D
D - 30 Sep 2006 04:54 GMT
I'm sorry, I don't know, other than S.Y.M. Wong-A-Ton response in this
string, to look further in this newsgroup for sample code. At this point,
it is more than I really know how to do.
Good luck!
> i was wondering how to get the code into the infopage, and where i could get
> some examples of this code
[quoted text clipped - 25 lines]
> > > > > Thank you for your help,
> > > > > D
S.Y.M. Wong-A-Ton - 30 Sep 2006 10:45 GMT
Try this link:
http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/3e
ac3d1470eb5127/d97c311577ac170a?lnk=gst&q=where-clause&rnum=3#d97c311577ac170a
What you basicly need to do is add a field for entering your partial text.
Then in the OnClick event handler of a button, add code to retrieve the value
of this field, retrieve the Command string for the data connection of the
form, append a WHERE-clause to the Command string including the value of the
field plus an asterisk(*), and issue a Query() on the data connection.
Restore the Command string to its original value when done.
---
S.Y.M. Wong-A-Ton
> where and how do you add this partial search code?
>
[quoted text clipped - 13 lines]
> > > Thank you for your help,
> > > D
AP - 01 Oct 2006 02:01 GMT
Thanks, i will play around with this and see what i come up with.
AP
> Try this link:
> http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/3e
ac3d1470eb5127/d97c311577ac170a?lnk=gst&q=where-clause&rnum=3#d97c311577ac170a
[quoted text clipped - 25 lines]
> > > > Thank you for your help,
> > > > D