<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>it.rss24h.com &#187; Microsoft</title>
	<atom:link href="http://it.rss24h.com/index.php/category/microsoft/feed/" rel="self" type="application/rss+xml" />
	<link>http://it.rss24h.com</link>
	<description>Solving technology problems</description>
	<lastBuildDate>Wed, 28 Apr 2010 07:28:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How do i restrict database mail not to send out of specific domain</title>
		<link>http://it.rss24h.com/index.php/how-do-i-restrict-database-mail-not-to-send-out-of-specific-domain/</link>
		<comments>http://it.rss24h.com/index.php/how-do-i-restrict-database-mail-not-to-send-out-of-specific-domain/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:28:04 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Database Mail]]></category>
		<category><![CDATA[SQL Sever 2008]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=65195</guid>
		<description><![CDATA[Question:
Hi,
We are having our QA system and production too. As a part of QA and requirement of system, we do require to test mail sending functionality from QA. Its procedure written on several table&#8217;s trigger.
How can i restrict my mails not to go outside my domain. i.e. if my domain is @xyz.com, how can i [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Hi,</p>
<p>We are having our QA system and production too. As a part of QA and requirement of system, we do require to test mail sending functionality from QA. Its procedure written on several table&#8217;s trigger.</p>
<p>How can i restrict my mails not to go outside my domain. i.e. if my domain is @xyz.com, how can i put restrict that even it found some real email address, system will not shoot mail on that if that is not part of @xyz.com?</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">From SQL Server, you can just add that simple validation alone..<br />
No other way to limit emails to only one domain and restrict all other domains from SQL Server like this.</p>
<p>&gt;&gt; i can find whether my domain is there or not, but how can i found that there are actually mails for other domains also?</p>
<p>A simple logic..<br />
If you know the domain which you can send to and what not to send to and store it in a list, then you can validate it simply right.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/how-do-i-restrict-database-mail-not-to-send-out-of-specific-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>from Oracle to sql server 2008</title>
		<link>http://it.rss24h.com/index.php/from-oracle-to-sql-server-2008/</link>
		<comments>http://it.rss24h.com/index.php/from-oracle-to-sql-server-2008/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:26:11 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[sql server 2008 & oracle]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=65193</guid>
		<description><![CDATA[Question:
Hello. Know of any tool that allows me to spend an Oracle 10g database to sql server 2008? as a backup restore
Solution:
the databases aren&#8217;t fully compatible in terms of types or procedural code, let alone underlying structures.  So &#8220;backup/restore&#8221; isn&#8217;t possible between the two products.
You can use linked tables or heterogeneous services or gateway products [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Hello. Know of any tool that allows me to spend an Oracle 10g database to sql server 2008? as a backup restore</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">the databases aren&#8217;t fully compatible in terms of types or procedural code, let alone underlying structures.  So &#8220;backup/restore&#8221; isn&#8217;t possible between the two products.</p>
<p>You can use linked tables or heterogeneous services or gateway products to move data back and forth between them (subject to datatype conversions)  that&#8217;s not a backup/restore scenario but it can provide &#8220;a&#8221; means of replicating your data to another system.</p>
<p>if you want truly reliable backups, each product comes with its own means of doing so.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/from-oracle-to-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSIS error &#8211; Argument &#8220;SMTP&#8221; for option &#8220;connection&#8221; is not valid</title>
		<link>http://it.rss24h.com/index.php/ssis-error-argument-smtp-for-option-connection-is-not-valid/</link>
		<comments>http://it.rss24h.com/index.php/ssis-error-argument-smtp-for-option-connection-is-not-valid/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:18:14 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sql 2008]]></category>
		<category><![CDATA[ssis]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=65184</guid>
		<description><![CDATA[Question:
I have built an SSIS package that works just fine in BIDS.  I would like to schedule the package in SQL Server Agent.  After I set it up I get the following error:
Argument &#8220;SMTP&#8221; for option &#8220;connection&#8221; is not valid
I also ran it using using command line DTExec and I get the same error.  Not [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">I have built an SSIS package that works just fine in BIDS.  I would like to schedule the package in SQL Server Agent.  After I set it up I get the following error:</p>
<p>Argument &#8220;SMTP&#8221; for option &#8220;connection&#8221; is not valid</p>
<p>I also ran it using using command line DTExec and I get the same error.  Not sure why.  The command line created by DETexecUI is below.</p>
<p>/FILE &#8220;D:\SSIS\Packages\SageDataTransfer.dtsx&#8221;  /CONNECTION DestinationConnectionOLEDB;&#8221;\&#8221;Data Source=EVERESTDA;Initial Catalog=AGC_PROD;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=false;\&#8221;" /CONNECTION &#8220;SMTP Connection Manager&#8221;;&#8221;\&#8221;SmtpServer=10.0.8.14;UseWindowsAuthentication=True;EnableSsl=False;\&#8221;" /CONNECTION SourceConnectionOLEDB;&#8221;\&#8221;Data Source=AGCCRMDB;User ID=sa;Initial Catalog=CRM58;Provider=SQLNCLI10.1;Persist Security Info=True;Auto Translate=false;Application Name=SSIS-SageDataTransfer-{7FE010B9-6D29-4D58-9784-448A4CC9F4FE}SourceConnectionOLEDB;\&#8221;" /CHECKPOINTING OFF /REPORTING E</p>
<p>Thanks for the help,<br />
Miguel</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">Focus on the part of the command line adjacent to &#8220;SMTP Connection Manager.&#8221; Instead of inserting quotes, you can try removing spaces altogether in various places (e.g. &#8220;SMTPConnectionManager&#8221;). The resulting command lines won&#8217;t work, but doing this may clarify where the problem is by producing different error messages.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/ssis-error-argument-smtp-for-option-connection-is-not-valid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding one static value to bound ItemSource in XAML</title>
		<link>http://it.rss24h.com/index.php/adding-one-static-value-to-bound-itemsource-in-xaml/</link>
		<comments>http://it.rss24h.com/index.php/adding-one-static-value-to-bound-itemsource-in-xaml/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:05:43 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[C# WPF Binding xaml]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=65169</guid>
		<description><![CDATA[Question:
Hi,
I have WPF program which uses basic binding when attaching items to a ComboBox. Data to this combo box is retrieved from server using a WCF service.
Is there a way to add &#8220;&#60;select item&#62;&#8221; value to source list at the client side?
Do I have to change how data is bound to be able to add [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Hi,</p>
<p>I have WPF program which uses basic binding when attaching items to a ComboBox. Data to this combo box is retrieved from server using a WCF service.</p>
<p>Is there a way to add &#8220;&lt;select item&gt;&#8221; value to source list at the client side?</p>
<p>Do I have to change how data is bound to be able to add &#8220;&lt;select item&gt;&#8221; as a default value to the selection list?</p>
<p>Could you please provide sample code?<br />
Code Snippet:</p>
<p>&lt;ComboBox x:Name=&#8221;ComboBoxBranch&#8221;<br />
ItemsSource=&#8221;{Binding Source={x:Static Application.Current}, Path=Branches}&#8221;<br />
SelectedItem=&#8221;{Binding Branch}&#8221; /&gt;</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">&gt;&gt;Is there a way to add &#8220;&lt;select item&gt;&#8221; value to source list at the client side?</p>
<p>you can change the model ( the code behind where the data for the combo is being fetched) and add one more record to it. Then you can fire the event INotifyPropertyChanged.</p>
<p>Check out:</p>
<p>http://odetocode.com/Articles/740.aspx</p>
<p>&gt;&gt;Do I have to change how data is bound to be able to add &#8220;&lt;select item&gt;&#8221; as a default value to the selection list?</p>
<p>I feel, no. You should provide &lt;select branch&gt; in first place, followed by the branch list. So, selected item index can be put as 0 for the first time when the control loads.</p>
<p>&gt;&gt;Could you please provide sample code?<br />
check out the link i have posted above, espacially &#8220;Binding To Collections&#8221; and   &#8220;Detecting Changes&#8221; topics. Of course then try doing the above trick. It should help you.</p>
<p>James</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/adding-one-static-value-to-bound-itemsource-in-xaml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sql Dumps</title>
		<link>http://it.rss24h.com/index.php/sql-dumps/</link>
		<comments>http://it.rss24h.com/index.php/sql-dumps/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 06:36:39 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=65141</guid>
		<description><![CDATA[Question:
Hi
i am having a problem with sql dumps.
the server is running sql 2005 as well as sql 2008.
when i create a maintenance plan to dump the sql dumps into a folder i have created on the server and execute it . it says Failed .
please assist
Solution:
try applying SP3 for SQL Server 2005 and SP1 for [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Hi</p>
<p>i am having a problem with sql dumps.<br />
the server is running sql 2005 as well as sql 2008.<br />
when i create a maintenance plan to dump the sql dumps into a folder i have created on the server and execute it . it says Failed .</p>
<p>please assist</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">try applying SP3 for SQL Server 2005 and SP1 for SQL Server 2008 and check it out once..<br />
Copy the contents of the error message in history instead of snapshot which might contain any additional information about the error.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/sql-dumps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access Form Question: Pass value to query and update subform</title>
		<link>http://it.rss24h.com/index.php/access-form-question-pass-value-to-query-and-update-subform/</link>
		<comments>http://it.rss24h.com/index.php/access-form-question-pass-value-to-query-and-update-subform/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 04:02:47 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[access]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=65094</guid>
		<description><![CDATA[Question:
Looking for a way to lookup a company name and display all the contacts associated with that company.
We have one table that has all the contacts in it.  Each contact record also has a company name in it.
I would like to have a form with a subform. The subform would display the records where the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">Looking for a way to lookup a company name and display all the contacts associated with that company.</p>
<p>We have one table that has all the contacts in it.  Each contact record also has a company name in it.</p>
<p>I would like to have a form with a subform. The subform would display the records where the company name matches what is entered on the main form.</p>
<p>Thanks, in advance.</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">Hi REIHELPDESK,</p>
<p>You don&#8217;t actually have a companies table in your db, that&#8217;s ok I created one for you.<br />
ID: PrimaryKey, Autonumber<br />
Title: Text &#8216; the name of the company</p>
<p>Then in your contacts table you need to add a new field called CompanyID: Number, LongInteger<br />
Then add a few companies to your companies table, and associate the contacts records with the companies by populating the CompanyID field in your contacts table with one of the ID values found in the companies table.</p>
<p>Then we create a new form which references the companies table as it&#8217;s recordsource. Add whatever fields you like to the form.<br />
Then we create a new form which references the contacts table as it&#8217;s recordsource, Add all the fields from your contacts table to the form, close and save the form.</p>
<p>Next we need to drag the contacts form we just created, from the navigation pane onto the companies form, make sure the companies form is opened in design view first.</p>
<p>Next we need to populate the parent/child links between the parent form (companies) and the child form (contacts). To that we need to select the contacts subform object/container in the companies form which is still in design view, press F4 to show the properties dialog and on the All tab of the properties dialog, you should see properties, Link master fields and Link Child fields. Type ID in the master field property and CompanyID in the Link Child Fields property. Done, save.</p>
<p>The next bit we need is to create an unbound combobox which we can use to navigate the companies form. Create a combobox named cbCompanies, set the rowsource property of the combobox to use the companies table as it&#8217;s rowsource. Ensure that it is unbound (make sure the control source property is empty). We should now have a combobox that lists our companies and their associated ID, note the ID field should be in the first column of the combobx, even if it is invisible in the combobox, it should be the first field in the underlying rowsource,</p>
<p>Finally; we need an event that fires when we select a different value in the combobox. To do this we bring up the properties for the combobox and on the Event tab we click the build button to the right of the After Update Event property. Then we write some code that will drive the companies form, so that the companies form moves to the record of the company selected in the dropdown list and a hopefully the contacts subform should be taken along for the ride.<br />
See snippet below:</p>
<p>hth</p>
<p>Alan &#8220;;0)</p>
<p>Private Sub cbCompanies_AfterUpdate()<br />
If Nz(Me.cbCompanies, 0) &lt;&gt; 0 Then<br />
Dim rst As Recordset<br />
Dim strSearchID As String</p>
<p>Set rst = Me.RecordsetClone<br />
strSearchID = Str(Me.cbCompanies)<br />
rst.FindFirst &#8220;ID = &#8221; &amp; strSearchID<br />
If rst.NoMatch Then<br />
MsgBox &#8220;Record not found&#8221;<br />
Else<br />
Me.Bookmark = rst.Bookmark<br />
End If<br />
rst.Close<br />
End If<br />
End Sub</p>
<p>TempDB.accdb (640 KB) (File Type Details)<br />
Your db with suggested modifications.</p>
]]></content:encoded>
			<wfw:commentRss>http://it.rss24h.com/index.php/access-form-question-pass-value-to-query-and-update-subform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>continuing with TVP setup</title>
		<link>http://it.rss24h.com/index.php/continuing-with-tvp-setup/</link>
		<comments>http://it.rss24h.com/index.php/continuing-with-tvp-setup/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 07:26:28 +0000</pubDate>
		<dc:creator>xumi</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://it.rss24h.com/?p=65079</guid>
		<description><![CDATA[Question:
I have two types of customers that I need to split my payroll among
I have an idea of how to do this based on their project/customer number
I have most everything written and have populated minimal example data. However I am missing something because It will print the table with all of the variable issues but [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Question</strong></span>:</p>
<p style="text-align: justify;">I have two types of customers that I need to split my payroll among<br />
I have an idea of how to do this based on their project/customer number</p>
<p>I have most everything written and have populated minimal example data. However I am missing something because It will print the table with all of the variable issues but is not projecting the results I have requested at the end of the sp.<br />
Any ideas.</p>
<p>I have done a bit of documenting so that hopefully you can follow my thought process. The error is in the sp that takes the tvp.</p>
<p>Creates initial table for project</p>
<p>CREATE TABLE [dbo].[project](<br />
[project_no] [int] NOT NULL,<br />
[project_name] [nchar](10) NOT NULL,<br />
[budget] [float] NOT NULL<br />
) ON [PRIMARY]</p>
<p>GO</p>
<p>INSERT INTO project (project_no,project_name,budget)<br />
VALUES (1,&#8217;Apollo&#8217;,120000),<br />
(2,&#8217;Gemini&#8217;,200000),<br />
(3,&#8217;Mercury&#8217;,186500),<br />
(4,&#8217;Challenger&#8217;,87000)</p>
<p>SELECT * FROM project<br />
GO</p>
<p>Creates TVP for project</p>
<p>CREATE TYPE [dbo].[pBudget] AS TABLE(<br />
[project_no] [int] NOT NULL,<br />
[budget] [float] NOT NULL,<br />
[num_catagory] [int] NOT NULL</p>
<p>)<br />
GO<br />
Creates UDF defining variable project number as even/odd for project</p>
<p>CREATE   FUNCTION  [dbo].[numCatagory](@project_no int)<br />
RETURNS int<br />
AS<br />
BEGIN<br />
DECLARE @numCatagory int<br />
set @numCatagory = case when (@project_no % 2)=0 then 2 else 1 end<br />
RETURN @numCatagory<br />
END<br />
GO<br />
Creates SP giving the requested table for project</p>
<p>SELECT project_no,project_name,budget,dbo.numCatagory(project_no) AS numCatagory<br />
FROM project<br />
CREATE PROCEDURE Proposed_Increase<br />
(@pbudget AS pBudget READONLY)<br />
AS<br />
DECLARE @p_no INT &#8211;project number<br />
DECLARE @numCatagory INT &#8212; even/odd code<br />
DECLARE @c_budget FLOAT &#8211;current budget for each project<br />
DECLARE @AVG_budget FLOAT&#8211;current average budget<br />
DECLARE @x_bmoney FLOAT &#8211;extra budget money<br />
DECLARE @e_count INT &#8212; count of even project numbers<br />
DECLARE @o_count INT&#8211; count of odd project numbers<br />
DECLARE @e_xamount FLOAT &#8212; total amount to be shared by each even project<br />
DECLARE @o_xamount FLOAT &#8212; total amount to be shared by each odd project<br />
DECLARE @p_budget FLOAT &#8212; new proposed budget</p>
<p>&#8211;DECLARE cursor<br />
DECLARE cbudget CURSOR &#8212; cbudget is the cursor readin from @nbudget<br />
local Scroll Keyset Optimistic</p>
<p>FOR SELECT project_no,budget,num_catagory FROM @pbudget</p>
<p>SELECT  project_no,<br />
budget,<br />
num_catagory<br />
FROM    @pBudget</p>
<p>SELECT  @AVG_budget = AVG(budget)<br />
FROM    @pBudget</p>
<p>SELECT  @e_count = COUNT(num_catagory)<br />
FROM    @pBudget<br />
WHERE   num_catagory = 2<br />
AND budget &lt; @AVG_budget</p>
<p>SELECT  @o_count = COUNT(num_catagory)<br />
FROM    @pBudget<br />
WHERE   num_catagory = 1<br />
AND budget &gt; @AVG_budget</p>
<p>SET @x_bmoney = 56000<br />
SET @e_xamount = ((@x_bmoney * (1 / 3)) / @e_count)<br />
SET @o_xamount = ((@x_bmoney * (2 / 3)) / @o_count)</p>
<p>OPEN cbudget</p>
<p>FETCH NEXT FROM cbudget INTO @p_no, @c_budget,@numCatagory</p>
<p>WHILE @@FETCH_STATUS = 0</p>
<p>BEGIN<br />
&#8211;calculate the amount to be increased<br />
BEGIN<br />
IF  @numCatagory = 2<br />
SET @p_budget = @e_xamount<br />
ELSE IF @numCatagory = 1<br />
SET @p_budget = @o_xamount<br />
END</p>
<p>FETCH NEXT FROM cbudget INTO @p_no, @c_budget,@numCatagory<br />
END</p>
<p>CLOSE cbudget<br />
DEALLOCATE cbudget</p>
<p>BEGIN<br />
IF @c_budget &lt; @AVG_budget<br />
PRINT &#8216;Project Number            Amount to be increased&#8217;<br />
PRINT @p_no PRINT @p_budget<br />
END<br />
Creates SP required to declare, populate and execute the SP for requested problem for project</p>
<p>CREATE PROC Request_budget_analysis<br />
AS<br />
DECLARE @pbudget AS pBudget</p>
<p>INSERT INTO @pbudget ([project_no],[budget],[num_catagory])</p>
<p>SELECT project_no,budget,dbo.numCatagory(project_no) AS numCatagory</p>
<p>FROM project</p>
<p>EXEC Proposed_Increase @pbudget</p>
<p>GO<br />
Executes SP required to declare, populate and execute the SP for requested problem for project</p>
<p>EXEC Request_budget_analysis<br />
GO</p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Solution</strong></span>:</p>
<p style="text-align: justify;">oh, you need the BEGIN/END inside the IF :<br />
IF @c_budget &lt; @AVG_budget<br />
BEGIN<br />
PRINT &#8216;Project Number            Amount to be increased&#8217;<br />
PRINT @p_no<br />
PRINT @p_budget<br />
END</p>
<p>the way you have it, it is printing the first Print line ONLY if the IF is true and ALWAYS printing the other 2 print lines.</p>
