<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://customerfx.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jason Buss&amp;#39; Blog : Forms, Development</title><link>http://customerfx.com/pages/customization/archive/tags/Forms/Development/default.aspx</link><description>Tags: Forms, Development</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Launching Schedule Activity functionality in the SLX Web client</title><link>http://customerfx.com/pages/customization/2011/10/27/Launching-Schedule-Activity-functionality-in-the-SLX-Web-client.aspx</link><pubDate>Thu, 27 Oct 2011 12:31:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:45269</guid><dc:creator>Jason Buss</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/customization/rsscomments.aspx?PostID=45269</wfw:commentRss><comments>http://customerfx.com/pages/customization/2011/10/27/Launching-Schedule-Activity-functionality-in-the-SLX-Web-client.aspx#comments</comments><description>&lt;p&gt;On a recent project, I worked on emulating functionality similar to what is found in the LAN client where a user is presented a dialog asking them to choose between different activity types then launching into the Schedule Activity functionality.&amp;nbsp; I found this was fairly easy to duplicate in the web client, and in this post, I&amp;#39;ll quickly go through the steps for creating that type of functionality.&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;First of all, we need to create a quick from which will give users a choice of what type of activity to create.&amp;nbsp; Since this form contains no bound controls, it doesn&amp;#39;t matter where we save it.&amp;nbsp; For the sake of consistency, I&amp;#39;d recommend saving it under SalesLogix Activity Support.&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Under SalesLogix Activity Support in the Project Explorer, expand the Activity node, right-click the Forms folder and select &amp;quot;Add Form&amp;quot;.&amp;nbsp; &lt;/p&gt;

&lt;p&gt;The important elements of this view are the radio group control and the button.&amp;nbsp; The radio group will provide users the choice of what type of activity to create, and the button will handle launching the appropriate schedule activity dialog based on the option selected.&lt;/p&gt;&lt;p&gt;Once you have the blank form, add a radio group and control&amp;nbsp; In the radio group control, I have added choices for Phone Calls, Meetings and ToDos.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/SLXWeb%20Activity%20Quickform.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/SLXWeb%20Activity%20Quickform.JPG" border="0" alt="" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;On the button I added to the form, I added a C# Snippet Action item to the click event of the button and added the following code: &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;table style="table-layout:fixed;width:600px;" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre&gt; LinkHandler Link &lt;span style="color:Navy;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;"&gt;new&lt;/span&gt; LinkHandler(Page);
&lt;span style="color:Blue;"&gt;if&lt;/span&gt; (rgActivityType.SelectedIndex == 0)
{
    Link.SchedulePhoneCall();
}
&lt;span style="color:Blue;"&gt;else&lt;/span&gt; &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (rgActivityType.SelectedIndex == 1)
{
    Link.ScheduleMeeting();
}
&lt;span style="color:Blue;"&gt;else&lt;/span&gt; &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (rgActivityType.SelectedIndex == 2)
{
    Link.ScheduleToDo();
}
&lt;span style="color:Blue;"&gt;else&lt;/span&gt;
{
    throw &lt;span style="color:Blue;"&gt;new&lt;/span&gt; Sage.Platform.Application.ValidationException(&lt;span style="color:#008080;"&gt;&amp;quot;You must select a activity type to continue&amp;quot;&lt;/span&gt;);
}&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p&gt;Creating a LinkHandler object gives you access to the various Schedule Activity forms.&amp;nbsp; An IF...Else statement calls the right schedule form based on what was selected.&amp;nbsp; I also added a Validation Exception in case no activity type was selected before clicking the Next button.&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;Once you have saved the new quick form, it is ready to go.&amp;nbsp; To use this form, you will need to add it to the available smartparts for whatever portal page you plan on calling the interface from.&amp;nbsp; To add the form, expand the Portal Manager-Sage SalesLogix-Pages nodes, and double click on whichever page you want to use.&lt;/p&gt;&lt;p&gt;When the page has opened, select the SmartParts tab and add the new form.&amp;nbsp; You will need to set the Target Workspace value to &amp;quot;DialogWorkspace&amp;quot;. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/SLXWebPortalPage.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/SLXWebPortalPage.JPG" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;Now that the QuickForm has been added, you will need to add code to launch the form.&amp;nbsp; This could be from a button on a detail view, or wherever you can add a C# Snippit action.&lt;br /&gt;&lt;p&gt;I&amp;#39;m simply using the Dialog service to call the new QuickForm.&amp;nbsp; The SetSpecs function I&amp;#39;m using allows you to set the dimensions of the form you launch.&amp;nbsp; You may have to experiment with the settings to make things the appropriate size. &lt;br /&gt;&lt;/p&gt;
&lt;table style="table-layout:fixed;width:600px;" cellpadding="0" cellspacing="0"&gt;&lt;tr&gt;&lt;td&gt;&lt;pre&gt; {
    &lt;span style="color:Green;"&gt;//create dialog for activity type to launch...
&lt;/span&gt;    &lt;span style="color:Blue;"&gt;if&lt;/span&gt; (DialogService !&lt;span style="color:Navy;"&gt;=&lt;/span&gt; &lt;span style="color:Blue;"&gt;null&lt;/span&gt;)
    {
        DialogService.SetSpecs(110, 318, &lt;span style="color:#008080;"&gt;&amp;quot;ScheduleActivity&amp;quot;&lt;/span&gt;, &lt;span style="color:#008080;"&gt;&amp;quot;Schedule Followup Activity&amp;quot;&lt;/span&gt;);
        DialogService.ShowDialog();
    }
}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;That&amp;#39;s about all there is to it!&amp;nbsp; I hope you find this example useful.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for reading!&lt;/p&gt;&lt;p&gt;&amp;nbsp;Jason &lt;br /&gt;&lt;/p&gt;&lt;img src="http://customerfx.com/aggbug.aspx?PostID=45269" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/customization/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://customerfx.com/pages/customization/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/customization/archive/tags/DialogWorkspace/default.aspx">DialogWorkspace</category><category domain="http://customerfx.com/pages/customization/archive/tags/Forms/default.aspx">Forms</category><category domain="http://customerfx.com/pages/customization/archive/tags/How-To/default.aspx">How-To</category><category domain="http://customerfx.com/pages/customization/archive/tags/SalesLogix/default.aspx">SalesLogix</category><category domain="http://customerfx.com/pages/customization/archive/tags/SalesLogix+Web/default.aspx">SalesLogix Web</category></item><item><title>SageCRM Tip - Editing screen definitions - Screen contents missing from screens</title><link>http://customerfx.com/pages/customization/2009/09/17/Sage-CRM-Tip-_2D00_-Editing-screen-definitions-_2D00_-Screen-contents-missing-from-screens.aspx</link><pubDate>Thu, 17 Sep 2009 10:39:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:40867</guid><dc:creator>Jason Buss</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/customization/rsscomments.aspx?PostID=40867</wfw:commentRss><comments>http://customerfx.com/pages/customization/2009/09/17/Sage-CRM-Tip-_2D00_-Editing-screen-definitions-_2D00_-Screen-contents-missing-from-screens.aspx#comments</comments><description>&lt;p&gt;On the last SageCRM project I worked on, I ran across a little issue with the CRM interface which was causing me a bit of a headache.&amp;nbsp; I was working with a couple of screens I had defined for a custom entity.&amp;nbsp; These screens were similar, so I was doing a lot of comparing one screen to another.&amp;nbsp; Every once and a while, I would notice that the screen contents would disappear from the screen I was reviewing, and I would end up having to rebuild the screen.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;After rebuilding this screen for the Nth time, I figured out what was going on:&amp;nbsp; If you change your mind and do not perform any changes to the screen, you MUST click either &amp;quot;save&amp;quot; or &amp;quot;cancel&amp;quot; to navigate off of the Screen Definition page.&amp;nbsp; Leaving the Screen Definition by simply navigating off the page causes the defined contents to be stripped from the screen.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/CRMEditScreen.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/CRMEditScreen.JPG" border="0" alt="" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Of course, even after I figured that out, I still had to rebuild the view a few more times before leaving the view properly became second nature!&amp;nbsp; Anyway, I hope this brief post saves you some headaches.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for reading!&amp;nbsp; &lt;img src="http://customerfx.com/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br /&gt;&lt;/p&gt;&lt;img src="http://customerfx.com/aggbug.aspx?PostID=40867" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/customization/archive/tags/Basics/default.aspx">Basics</category><category domain="http://customerfx.com/pages/customization/archive/tags/Customizations/default.aspx">Customizations</category><category domain="http://customerfx.com/pages/customization/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/customization/archive/tags/Forms/default.aspx">Forms</category><category domain="http://customerfx.com/pages/customization/archive/tags/Sage+CRM/default.aspx">Sage CRM</category></item><item><title>Displaying external data in SageCRM 200</title><link>http://customerfx.com/pages/customization/2009/08/19/displaying-external-data-in-sage-crm-200.aspx</link><pubDate>Wed, 19 Aug 2009 08:41:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:40775</guid><dc:creator>Jason Buss</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/customization/rsscomments.aspx?PostID=40775</wfw:commentRss><comments>http://customerfx.com/pages/customization/2009/08/19/displaying-external-data-in-sage-crm-200.aspx#comments</comments><description>&lt;p&gt;In this post, I will outline a relatively simply process for displaying data in SageCRM from an external data source. &amp;nbsp; To keep this simple, we&amp;#39;re not going to worry about any sort of security, and we&amp;#39;ll save more advanced formatting for another post.&lt;/p&gt;
&lt;p&gt;First of all, we need to create a reference to an external data source.&amp;nbsp; For this example, I&amp;#39;m using the Standard &amp;quot;Northwind&amp;quot; database installed with SQL.&amp;nbsp; To create a connection to an external datasource, click the &amp;quot;Administration&amp;quot;&lt;i&gt; &lt;/i&gt;button, then &amp;quot;Advanced Customization&amp;quot; and finally &amp;quot;Tables and Databases&amp;quot;.&lt;/p&gt;
&lt;p&gt;Once in this area, click the &amp;quot;New Database Connection&amp;quot; button which will presented a Database Details view where you enter your connection information&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/CRMDatabaseDetails.JPG"&gt;&lt;img height="434" src="http://customerfx.com/blogs/customization/CRMDatabaseDetails.JPG" width="551" border="0" alt="" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve entered the following info:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Database Driver:&amp;nbsp; There are a number of options here, but since I&amp;#39;m connecting to a SQL database, I selected Microsoft SQLServer&lt;/li&gt;
&lt;li&gt;Server Name:&amp;nbsp; The name of the SQL server containing the external database.&lt;/li&gt;
&lt;li&gt;Database Name:&amp;nbsp; The name of the External Database.&lt;/li&gt;
&lt;li&gt;Database Description&lt;/li&gt;
&lt;li&gt;Username/Password:&amp;nbsp; For the sake of this example, I&amp;#39;m simply using the standard sa username/password for this server.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Click &amp;quot;Save&amp;quot; after entering this information.&amp;nbsp; The Northwind database will now display in the list of available Databases, however we still need to include a table.&amp;nbsp; For this example, I&amp;#39;m going to use the &amp;quot;Orders&amp;quot; table in Northwind, but we need to perform a step on the database before we can display information from this table on the Team CRM tab.&lt;/p&gt;
&lt;p&gt;To display on the Team CRM tab, the table needs to contain a field named chan_channelid.&amp;nbsp; This field is used by the Team CRM tab to determine if the current user has access to see this data.&amp;nbsp; For this example, we want all users to see this, so we want this field to contain a value of 5.&amp;nbsp; We could just add a new column and insert that value across the entire table, however to avoid modifying the original source data, I&amp;#39;m going to create a view instead.&lt;/p&gt;
&lt;p&gt;To create the view, I use the following syntax in SQL Query anaylizer:&lt;/p&gt;
&lt;p style="MARGIN-LEFT:40px;"&gt;create view vOrders as select 5 as chan_channelid, * from orders&lt;/p&gt;
&lt;p&gt;I now have a view named &amp;quot;vOrders&amp;quot; which I can use in SageCRM&lt;/p&gt;
&lt;p&gt;Back under Administration|Advanced Customizations|Tables and Databases, click the&amp;nbsp; &amp;quot;New Table Connection&amp;quot; button to bring up the table details view:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/CRMTableDetails.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/CRMTableDetails.JPG" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;On this view, we need to fill in the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Table Name:&amp;nbsp; This is the name of the view we created earlier&lt;/li&gt;
&lt;li&gt;Table Caption:&amp;nbsp; This is the caption by which the table (view) will be identified in SageCRM (Note: This value cannot contain spaces)&lt;/li&gt;
&lt;li&gt;Database:&amp;nbsp; This pull-down should contain the Northwind database that we created the connection to earlier. &lt;br /&gt;&lt;/li&gt;
&lt;li&gt;ID Field Name:&amp;nbsp; For this example, we&amp;#39;re going to leave this value blank for now.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Click &amp;quot;Save&amp;quot; on this view.&amp;nbsp; The data from the Northwind Orders table will now be available in SageCRM&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now that we&amp;#39;ve created connections to the Northwind table and Orders database (via a view), we need to create a list view containing Orders data.&amp;nbsp; Go to Administration|Customizations.&amp;nbsp; You should find the entry for &amp;quot;NorthwindOrders&amp;quot; listed in the Secondary entities pull-down.&amp;nbsp; Once that is selected, click the &amp;quot;Lists&amp;quot; tab, and click the &amp;quot;New&amp;quot; Button:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/CRMListDefinition.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/CRMListDefinition.JPG" border="0" alt="" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For the New List Definition, we simply need to enter:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Name:&amp;nbsp; This is the descriptive name of the List view&lt;/li&gt;
&lt;li&gt;Table/View:&amp;nbsp; the name of our view (vOrders)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Click Save, and then click the &amp;quot;Customize&amp;quot; button next to the newly created view to define the columns to display:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/CRMListDefinitionColumns.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/CRMListDefinitionColumns.JPG" border="0" alt="" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On this view, add whichever fields you want to display and click &amp;quot;Save&amp;quot; to finish configuring the new list view.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now that we have our list view created, the only step remaining is to add the list view to the Team CRM area.&amp;nbsp; To add a new tab to Team CRM, go to Administration|Advanced Customization and click on &amp;quot;System Menus&amp;quot;.&amp;nbsp; The tabs under Team CRM are defined in the &amp;quot;Channel&amp;quot; tab group, so click &amp;quot;Customize&amp;quot; next to that entry:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/CRMCustomizeTabsForChannel.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/CRMCustomizeTabsForChannel.JPG" border="0" alt="" /&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here, we need to set three values:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Caption:&amp;nbsp; This will display on the tab under Team CRM&lt;/li&gt;
&lt;li&gt;Action: Run Block&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Block Name:&amp;nbsp; This is the Caption we defined for the list view.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Click Save, and we are done!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://customerfx.com/blogs/customization/CRMNewTabComplete.JPG"&gt;&lt;img src="http://customerfx.com/blogs/customization/CRMNewTabComplete.JPG" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we wanted to do additional formatting, say on the date fields or column captions, I would make those sort of changes in the view we created.&amp;nbsp; Otherwise, this is a pretty simply method to display external data within SageCRM.&amp;nbsp; In future postings on SageCRM, I&amp;#39;ll try to get into adding data related to existing entites and possibly dig more into user security topics.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope you find this helpful, or at least interesting.&amp;nbsp; Thanks for reading! &amp;nbsp;&lt;img src="http://customerfx.com/emoticons/emotion-1.gif" alt="Smile" /&gt; &lt;br /&gt;&lt;/p&gt;&lt;img src="http://customerfx.com/aggbug.aspx?PostID=40775" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/customization/archive/tags/Customizations/default.aspx">Customizations</category><category domain="http://customerfx.com/pages/customization/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/customization/archive/tags/External+Data/default.aspx">External Data</category><category domain="http://customerfx.com/pages/customization/archive/tags/Forms/default.aspx">Forms</category><category domain="http://customerfx.com/pages/customization/archive/tags/How-To/default.aspx">How-To</category><category domain="http://customerfx.com/pages/customization/archive/tags/Sage+CRM/default.aspx">Sage CRM</category></item><item><title>Using the Forms collection in the SalesLogix LAN client</title><link>http://customerfx.com/pages/customization/2009/06/24/using-the-forms-collection-in-the-saleslogix-lan-client.aspx</link><pubDate>Wed, 24 Jun 2009 17:56:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:40626</guid><dc:creator>Jason Buss</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/customization/rsscomments.aspx?PostID=40626</wfw:commentRss><comments>http://customerfx.com/pages/customization/2009/06/24/using-the-forms-collection-in-the-saleslogix-lan-client.aspx#comments</comments><description>&lt;p&gt;From time to time, you may find that you want to reference a control or script on a form other than the one you are currently on.&amp;nbsp; This can be done easily using the Forms collection in SalesLogix.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The first thing we need to do is to loop through all open forms, checking for the desired form.&amp;nbsp; For this example, we&amp;#39;ll look for the Contact Detail form.&amp;nbsp; (Note:&amp;nbsp; we&amp;#39;re looking for the value contained within the &amp;quot;Name&amp;quot; property of the form we are looking for.):&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim frm&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim x&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For x = 0 to Application.Forms.Count - 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Application.Forms(x).Name = &amp;quot;frmContactDetail&amp;quot; Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set frm = Application.Forms(x)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit For&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Once this code runs, we should have an object (frm) containing a reference to that form.&amp;nbsp; If the form is not found, the code will return null, which we should look for before trying to manipulate anything&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not frm Is Nothing Then&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If &lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Any references should be done within that IF statement.&amp;nbsp; To access properties, you just need to include the form object (frm.&lt;i&gt;{control}.{property}&lt;/i&gt;).&amp;nbsp; For scripts, you&amp;#39;ll need to access the forms Scripts collection (frm.scripts.&lt;i&gt;{sub or function name}&lt;/i&gt;)&lt;/p&gt;&lt;p&gt;That&amp;#39;s all there is to it.&amp;nbsp; All in all, pretty easy, right? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Keep in mind,&amp;nbsp; this does require that the form you want to reference actually be open. &amp;nbsp; If you want access to information to information on an uninitiated form, you&amp;#39;ll need to access the appropriate tables directly.&lt;/p&gt;&lt;p&gt;Hope you find this post helpful.&amp;nbsp; Thanks again for reading&amp;nbsp;&lt;img src="http://customerfx.com/emoticons/emotion-1.gif" alt="Smile" /&gt; &lt;br /&gt;&lt;/p&gt;&lt;img src="http://customerfx.com/aggbug.aspx?PostID=40626" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/customization/archive/tags/Basics/default.aspx">Basics</category><category domain="http://customerfx.com/pages/customization/archive/tags/Customizations/default.aspx">Customizations</category><category domain="http://customerfx.com/pages/customization/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/customization/archive/tags/Forms/default.aspx">Forms</category><category domain="http://customerfx.com/pages/customization/archive/tags/Forms+Collection/default.aspx">Forms Collection</category><category domain="http://customerfx.com/pages/customization/archive/tags/How-To/default.aspx">How-To</category><category domain="http://customerfx.com/pages/customization/archive/tags/SalesLogix/default.aspx">SalesLogix</category><category domain="http://customerfx.com/pages/customization/archive/tags/SalesLogix+LAN+Client/default.aspx">SalesLogix LAN Client</category><category domain="http://customerfx.com/pages/customization/archive/tags/scripting/default.aspx">scripting</category><category domain="http://customerfx.com/pages/customization/archive/tags/vbscript/default.aspx">vbscript</category></item></channel></rss>