Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / March 2008

Tip: Looking for answers? Try searching our database.

Removing duplicate entries in a list box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KirstyW - 07 Mar 2008 09:41 GMT
I have a drop down list box that is populated from a seconday data connection
to a SQL server database.  When it populates I would like it to remove
duplicate entries.  A trawl of the internet came up with the solution:

. = (. = not(. = preceding::my:field))

The dropdown list box is based on a field query field called ChecklistGroup
so I used the formula:

. = (. = not(. = preceding::q:ChecklistGroup))

and put it on the data connection filter.  This didn't do anything so I
tried to add it as a rule of the listbox.  This didn't work either.

Can anyone suggest either what I am doing wrong or if there is a way of
doing this?

Thanks
Clay Fox - 07 Mar 2008 18:15 GMT
You are on the right track.

Unfortunateluy there is no syntax checking or errors it just does not work.

Try looking on http://www.infopathdev.com and search on preceding.

I believe you need to still reference the field itself after ChecklistGroup.

If you still can't find it I will dig up a form where i have done this.
Signature

Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum

> I have a drop down list box that is populated from a seconday data connection
> to a SQL server database.  When it populates I would like it to remove
[quoted text clipped - 14 lines]
>
> Thanks

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.