﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Browse Dialog Search Field Combo-Enum</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 08 May 2026 14:44:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost10563.aspx</link><description>I am trying to use The Combo-Enum option for a browse dialog search field. The combo is populated properly from the Enum.&lt;/P&gt;&lt;P&gt;If the Combo is left alone at&amp;nbsp;&amp;lt;Not Selected and a search is executed I&amp;nbsp;get a good result set however&amp;nbsp;if a&amp;nbsp;value is selected&amp;nbsp;from the drop down and another search is&amp;nbsp;executed&amp;nbsp;nothing is returned.&lt;BR&gt;&lt;/P&gt;&lt;P&gt;p</description><pubDate>Wed, 06 Feb 2008 19:36:37 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost14145.aspx</link><description>OK, Paul, it was a simple bug.&amp;nbsp; Try this UI assembly instead.&amp;nbsp; I am assuming that you are already running on the 1.6.5 beta, so just add this assembly to you GAC and the c:\program Files\Common Files\MicroFOur\StrataFrame folder and you should be good to go.&amp;nbsp; I did reproduce the error and once I made this change the BrowseDialog worked as it should in this scenario.</description><pubDate>Wed, 06 Feb 2008 19:36:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12858.aspx</link><description>[quote]I found the issue above.&amp;nbsp;I had added a registry key to test Ivans theory...[/quote]&lt;/P&gt;&lt;P&gt;oops, I did it again.&amp;nbsp; :D</description><pubDate>Wed, 28 Nov 2007 15:10:21 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12855.aspx</link><description>LOL....I know EXACTLY how that goes :D</description><pubDate>Wed, 28 Nov 2007 13:51:57 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12854.aspx</link><description>Yeah it was driving me crazy, it never fails the entire company is coming in for our annual meeting and the most important screen in the application decides to go on vacation.</description><pubDate>Wed, 28 Nov 2007 13:38:01 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12843.aspx</link><description>Ah...yeah, that would get you :)&amp;nbsp; Glad you found it.&amp;nbsp; As for the sample that you sent, I have not yet worked through it....but it is on my to-do list and I will get it taken care of before the next update.&amp;nbsp;</description><pubDate>Wed, 28 Nov 2007 12:04:42 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12842.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;I found the issue above.&amp;nbsp;I had added a registry key to test Ivans theory and saved it with no search fields, I completly forgot about adding it, anyways that was all it was</description><pubDate>Wed, 28 Nov 2007 10:35:03 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12839.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;I am having an issue with one of my browse dialogs that is really screwing me up. After I tried the new Dll's that you posted and then reverted I have had issues with a few things, I have been able to work through most all of them but one browse dialog keeps failing and I can't figure out why,&lt;/P&gt;&lt;P&gt;Of course it is the browse dialog for the central most important form in the application. (Why is it always like this?) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;Anyways I'm under the gun so any help you can give me would be mucho appreciated. Also since flip flopping dll's the search fields editor does not work.&lt;/P&gt;&lt;P&gt;Anyways here is the stack trace, &lt;/P&gt;&lt;P&gt;Thanks Paul&lt;/P&gt;&lt;P&gt;ArgumentOutOfRangeException&lt;BR&gt;&amp;nbsp; Index was out of range. Must be non-negative and less than the size of the collection.&lt;BR&gt;Parameter name: index&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : mscorlib&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.ThrowHelper.ThrowArgumentOutOfRangeException()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Collections.Generic.List`1.get_Item(Int32 index)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow.PositionLabels(Control&amp;amp; ParentControl)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow.AddSearchFields()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog&amp;#119;indow..ctor(BrowseDialog BrowseDialogSettings, Boolean PopulateOnShow)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog(Boolean PopulateOnShow, IWin32Window ResultsWindowOwner)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog(Boolean PopulateOnShow)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at ActionLabor.Payroll.UI.WindowsForms.Frmmain.BtnBrowse_ItemClick(Object sender, ItemClickEventArgs e) in C:\Action Labor Payroll\UI\Forms\FrmMain.vb:line 549&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.BarItemLink.OnLinkClick()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at DevExpress.XtraBars.Controls.DockedBarControl.WndProc(Message&amp;amp; msg)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;</description><pubDate>Wed, 28 Nov 2007 08:35:47 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12813.aspx</link><description>Sounds good, Paul.&amp;nbsp; Have a Happy Thanksgiving! :)</description><pubDate>Wed, 21 Nov 2007 12:16:38 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12812.aspx</link><description>Thank you Trent,&lt;/P&gt;&lt;P&gt;I hope you are feeling better getting sick really sucks! I'd appreciate whatever you can do but don't kill yourself over it or work over the holiday.&lt;/P&gt;&lt;P&gt;I am going to&amp;nbsp;be&amp;nbsp;doing a presentation and releasing a demo-beta version at the end of next week during our annual manager's meeting so if you can get something sometime next week that would be great if not the hack job I did works well enough that I should be able to release it ok.&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Wed, 21 Nov 2007 08:14:15 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12810.aspx</link><description>Paul,&lt;/P&gt;&lt;P&gt;I will take a look at this over the weekend.&amp;nbsp; I got sick and was out of the office right after you had posted this sample and I never got around to looking at it.&amp;nbsp; I will look at it this weekend over Thanksgiving sometime.&lt;/P&gt;&lt;P&gt;Thanks.</description><pubDate>Wed, 21 Nov 2007 03:55:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12790.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;It is still an issue with the latest update, also because I have modified the business layer (primary key&amp;nbsp;is updatable) I am having to use&amp;nbsp;my modified&amp;nbsp;business.dll but I don't think that should make a difference. However that may be the reason why the type editors for the seach fields no longer works?&lt;/P&gt;&lt;P&gt;It would be great if you guys could take a look at this.&lt;/P&gt;&lt;P&gt;P</description><pubDate>Mon, 19 Nov 2007 13:00:02 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12759.aspx</link><description>Have you tried the latest DLLs that Trent posted in his last update?&amp;nbsp; I believe he made several changes to the BrowseDialog to fix this as well as the issues when you use the same search field twice (and I believe the SelectedValue = -1 issue too).&amp;nbsp; I'm pretty sure that he posted the update, so you might give it a try.&lt;/P&gt;&lt;P&gt;He posted it in the updates forum from the main page.</description><pubDate>Mon, 19 Nov 2007 09:00:51 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12734.aspx</link><description>Ivan I'm just glad you could reproduce it.!!!! I thought I was going crazy. &lt;/P&gt;&lt;P&gt;I'll tried what you suggested and it works, It looks like&amp;nbsp;the search fields collection gets reordered&amp;nbsp;so visible search fields are at the top when you save it. &lt;/P&gt;&lt;P&gt;It is not really a solution but hopefully will help trent and ben get it fixed &lt;/P&gt;&lt;P&gt;Trent,&lt;/P&gt;&lt;P&gt;I'm sure you guy's have lots of fish in the fryer but anything you could do to get this resolved would be great I am planning on releasing a beta at our annual manager's meeting on Dec. 1st</description><pubDate>Thu, 15 Nov 2007 16:24:10 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12731.aspx</link><description>Yep, I was able to reproduce it.&lt;/P&gt;&lt;P&gt;I had to get rid of the "PrimaryKeyIsRowGuid" BO property first, as I think this is something inheriting from a base BO of yours over there.</description><pubDate>Thu, 15 Nov 2007 15:38:05 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12729.aspx</link><description>Ivan,&lt;/P&gt;&lt;P&gt;Where you able to reproduce the&amp;nbsp;problem prior to making the&amp;nbsp;change you suggested ? &lt;/P&gt;&lt;P&gt;I will test on my end but have to re-switch dll's</description><pubDate>Thu, 15 Nov 2007 15:23:31 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12728.aspx</link><description>Hi Paul.&lt;P&gt;I tried your sample, was curious. &lt;P&gt;I think this has to do with the change they might have made in order to get the RegistryKey working. Please, try in your end, put something in the BrowseDialog RegistryKey property (HKEY_LOCAL_MACHINE\SOFTWARE\Paul\test or whatever), run your sample and click the Search Fields in the toolstrip menu. Save it and test again. It works here.&lt;P&gt;It is not a solution, but might get you going and gives a clue about where to look.</description><pubDate>Thu, 15 Nov 2007 14:51:19 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12725.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;Any word on this ?&lt;/P&gt;&lt;P&gt;I had to revert back to the original source code that I modified because using the latest release&amp;nbsp;still causes all of my browse dialogs to crash or display erroneous results as I posted before. &lt;/P&gt;&lt;P&gt;(after reverting)&amp;nbsp;the type editor&amp;nbsp;for search fields no longer work's it simply does not appear. So it&amp;nbsp;sucks to modify existing browse dialogs and to add a new one I&amp;nbsp;ended up copy and paste all the code out of&amp;nbsp;an existing one and modify the field names etc just to get it done.</description><pubDate>Thu, 15 Nov 2007 13:44:43 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12680.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;This is not fixed in that release.&lt;/P&gt;&lt;P&gt;I created a sample app that reproduces the problem.&lt;/P&gt;&lt;P&gt;Here are the steps I took&lt;/P&gt;&lt;P&gt;1) Created a BO and BrowseDialog mapped to your sample customer table&lt;/P&gt;&lt;P&gt;2.) create a search field on cust_pk with visible not checked&lt;/P&gt;&lt;P&gt;3.) create a search field on cust_firstname with visible&amp;nbsp;checked&lt;/P&gt;&lt;P&gt;4.)create results showing pk and name&lt;/P&gt;&lt;P&gt;When you call showdialog() only the cust_firstname field is visible for searching.&amp;nbsp;If you try to search on all customers with a first name starting with "a"&amp;nbsp;you&amp;nbsp;will get a input string error however search on "25" and you will get whatever record's PK is 25. When the where clause is built it doesn't respect nonvisible fields.&lt;/P&gt;&lt;P&gt;Let me know if the sample helps you see what I mean.</description><pubDate>Tue, 13 Nov 2007 13:27:10 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12673.aspx</link><description>Download the latest fixes for the BrowseDialog and let me know if the problem persists.&amp;nbsp; &lt;A href="http://forum.strataframe.net/FindPost12630.aspx"&gt;http://forum.strataframe.net/FindPost12630.aspx&lt;/A&gt;&amp;nbsp;</description><pubDate>Tue, 13 Nov 2007 11:51:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12618.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;Maybe you fixed it since the last release? &lt;/P&gt;&lt;P&gt;The problem is when you have nonvisible search fields. If you create 2 search fields one on the PK and another on some other field. Set the PK to nonvisible. fire up your app and show the browse, enter some data in your&amp;nbsp; other search field, when you search the query that is built will be something like &lt;/P&gt;&lt;P&gt;"select whatever from sometable WHERE PK_ID = my other search fields value". &lt;/P&gt;&lt;P&gt;instead of "Where MyOtherSearchField = my other search fields value"&lt;/P&gt;&lt;P&gt;The where clause is being built on the search fields collection regardless of visible or not&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Mon, 12 Nov 2007 09:22:20 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12613.aspx</link><description>Paul,&lt;/P&gt;&lt;P&gt;I have had trouble reproducing this through the examples that you have provided.&amp;nbsp; I made a number of changes to the BrowseDialog today and thought I would look as this as well.&amp;nbsp; I did not make a change on this side as I could not make it fail.&amp;nbsp; I will look at your sample again to see if I can make it fail from that point.&amp;nbsp; But I may need some more information in order to address this.&amp;nbsp; Thanks.</description><pubDate>Sat, 10 Nov 2007 21:11:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12599.aspx</link><description>What&amp;nbsp;I posted above doesn't seem to work 100% it fixes the problem of non visible search fields but if you then make a&amp;nbsp;search field visible it does not respect that you added&amp;nbsp;made it visible,&amp;nbsp;so it is like a 50 % fix</description><pubDate>Thu, 08 Nov 2007 16:31:41 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost12598.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;I wanted to check and see if you ever had a chance to fix this? I overwrote the changes I made to the source a long time ago and had to scratch my head for awhile.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Thu, 08 Nov 2007 16:26:21 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Browse Dialog Search Field Combo-Enum</title><link>http://forum.strataframe.net/FindPost10597.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;I just added another search fields collection to store the visible controls.&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;'--New Paul Code Add&amp;nbsp;new private var search field&amp;nbsp;Collection&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;FONT size=2&gt; _VisibleSearchFields &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;FONT size=2&gt; SearchFieldCollection()&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;In the &lt;FONT size=2&gt;CreateAllSearchFieldControls() sub I add the search field item to the above collection. &lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- See if the control is visible&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Not&lt;/FONT&gt;&lt;FONT size=2&gt; loItem.Visible &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Continue&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;For&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'--Start New Paul Code Add to Visble Collection&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;_VisibleSearchFields.Add(loItem)&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;'--End New Paul Code Add to Visble Collection&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Finally in the&amp;nbsp; BuildWhereSearchClause&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Cycle through all of the fields to determine which fields&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;' have contents&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;For&lt;/FONT&gt;&lt;FONT size=2&gt; lnCnt = 0 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;To&lt;/FONT&gt;&lt;FONT size=2&gt; _Controls.Count - 1&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Get a reference to the control&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;loControl = _Controls(lnCnt)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- If the control has data, then add the control to the list of where statements&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;FONT size=2&gt; HasData(loControl) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;'-- Add the where statement-- Paul Change to look at new collection&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;P&gt;'loReturn.Add(BuildWhereElement(lnCnt))&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;loReturn.Add(BuildWhereElement(_VisibleSearchFields(lnCnt)))&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Next&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;There is still an issue with re-adding non visible search fields via the search fields list box. I would need to rebuild the visible controls collection there but just haven't looked at it yet&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;P&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Fri, 27 Jul 2007 08:59:01 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item></channel></rss>