You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ITSM/.svn/pristine/25/254fe86767376de2da9664565ed...

131 lines
8.7 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
<meta name="GENERATOR" content="VBdocman .NET - documentation generator; http://www.vbdocman.com">
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=UTF-8">
<TITLE>FrmReportSelect.Get_SQLWhere -Methode</TITLE>
<xml>
<MSHelp:TOCTitle Title="FrmReportSelect.Get_SQLWhere -Methode"/>
<MSHelp:RLTitle Title="FrmReportSelect.Get_SQLWhere -Methode"/>
<MSHelp:Keyword Index="A" Term="topic_00000000000006FF"/>
<MSHelp:Keyword Index="K" Term="FrmReportSelect.Get_SQLWhere -Methode"/>
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.FrmReportSelect.Get_SQLWhere -Methode"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.FrmReportSelect.Get_SQLWhere"/>
<MSHelp:Keyword Index="F" Term="FrmReportSelect.Get_SQLWhere"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.FrmReportSelect.FrmReportSelect.Get_SQLWhere"/>
<MSHelp:Attr Name="DevLang" Value="VB"/>
<MSHelp:Attr Name="DevLangVers" Value="kbLangVB"/>
<MSHelp:Attr Name="DocSet" Value="Visual Basic"/>
<MSHelp:Attr Name="DocSet" Value="Visual Studio"/>
<MSHelp:Attr Name="DocSet" Value="VSM"/>
<MSHelp:Attr Name="Product" Value="VB"/>
<MSHelp:Attr Name="ProductVers" Value="kbVBp700"/>
<MSHelp:Attr Name="Product" Value="VSA"/>
<MSHelp:Attr Name="ProductVers" Value="kbVSA"/>
<MSHelp:Attr Name="Technology" Value="ManagedCode"/>
<MSHelp:Attr Name="TechnologyVers" Value="kbManagedCode"/>
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
<MSHelp:Attr Name="TargetOS" Value="Windows"/>
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
</xml>
<META name="rtfFileName" content="">
<META NAME="save" CONTENT="history">
<!--CSS_START-->
<SCRIPT SRC="MSHelp/scripts/dtuelink.js"></SCRIPT>
<!--CSS_END-->
<SCRIPT language="JavaScript">
function indent(level) {
for (i=1; i<=level; i++) {
document.write("&nbsp;&nbsp;&nbsp;");
}
}
</SCRIPT>
</HEAD>
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER START-->
<div id="nsbanner">
<div id="bannerrow1">
<TABLE CLASS="bannerparthead" CELLSPACING=0>
<TR ID="hdr">
<TD CLASS="runninghead" nowrap>Vertragsverwaltung-Klassenbibliothek</TD>
<TD CLASS="product" nowrap>&nbsp;</TD>
</TR>
</TABLE>
</div>
<div id="TitleRow">
<H1 class="dtH1"><A NAME="topic_00000000000006FF"></A>FrmReportSelect.Get_SQLWhere -Methode</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!---->
<P>Where Bedingung für die Abfrage zusammenstellen</P>
<PRE class="syntax"><SPAN class="lang">[Visual&nbsp;Basic]
</SPAN><B>Private Sub Get_SQLWhere()</B></PRE>
<H4 class="dtH4">Quellcode</H4>
<pre class="code"><SPAN class="lang">[Visual&nbsp;Basic]</SPAN>
Private Sub Get_SQLWhere()&nbsp;<br> Me.auswertungen.ParamCollection.Clear()&nbsp;<br> Dim s As String&nbsp;<br> Dim i As Integer&nbsp;<br> Me.SQLWhere = &quot;&quot;&nbsp;<br>&nbsp;<br> If Me.cbparam1.Text &lt;&gt; &quot;&quot; And Me.cbop1.Text &lt;&gt; &quot;&quot; And Me.cbvalue1.Text &lt;&gt; &quot;&quot; Then&nbsp;<br> Me.auswertungen.ParamCollection.Add(cbparam1.Text &amp; &quot; &quot; &amp; cbop1.Text &amp; &quot; &quot; &amp; cbvalue1.Text)&nbsp;<br> s = cbparam1.Text &amp; &quot; &quot; &amp; cbop1.Text &amp; &quot; &quot; &amp; cbvalue1.Text&nbsp;<br> SQLWhere = SQLWhere + get_where(1)&nbsp;<br> End If&nbsp;<br> If Me.cbandor1.Text &lt;&gt; &quot;&quot; And Me.cbparam2.Text &lt;&gt; &quot;&quot; And Me.cbop2.Text &lt;&gt; &quot;&quot; And Me.cbvalue2.Text &lt;&gt; &quot;&quot; Then&nbsp;<br> If Me.cbandor1.Text = &quot;und&quot; Then SQLWhere = SQLWhere + &quot; and &quot; + get_where(2)&nbsp;<br> If Me.cbandor1.Text = &quot;oder&quot; Then SQLWhere = SQLWhere + &quot; or &quot; + get_where(2)&nbsp;<br> Me.auswertungen.ParamCollection.Add(cbandor1.Text + &quot; &quot; + cbparam2.Text &amp; &quot; &quot; &amp; cbop2.Text &amp; &quot; &quot; &amp; cbvalue2.Text)&nbsp;<br> s = s &amp; &quot;' &amp; Chr(10) &amp; Chr(13) &amp; '&quot; &amp; cbandor1.Text &amp; &quot; &quot; &amp; cbparam2.Text &amp; &quot; &quot; &amp; cbop2.Text &amp; &quot; &quot; &amp; cbvalue2.Text&nbsp;<br> End If&nbsp;<br> If Me.cbandor2.Text &lt;&gt; &quot;&quot; And Me.cbparam3.Text &lt;&gt; &quot;&quot; And Me.cbop3.Text &lt;&gt; &quot;&quot; And Me.cbvalue3.Text &lt;&gt; &quot;&quot; Then&nbsp;<br> If Me.cbandor2.Text = &quot;und&quot; Then SQLWhere = SQLWhere + &quot; and &quot; + get_where(3)&nbsp;<br> If Me.cbandor2.Text = &quot;oder&quot; Then SQLWhere = SQLWhere + &quot; or &quot; + get_where(3)&nbsp;<br> Me.auswertungen.ParamCollection.Add(cbandor2.Text + &quot; &quot; + cbparam3.Text &amp; &quot; &quot; &amp; cbop3.Text &amp; &quot; &quot; &amp; cbvalue3.Text)&nbsp;<br> s = s + &quot; &quot; + cbandor2.Text + &quot; &quot; + cbparam3.Text &amp; &quot; &quot; &amp; cbop3.Text &amp; &quot; &quot; &amp; cbvalue3.Text&nbsp;<br> End If&nbsp;<br> If Me.cbandor3.Text &lt;&gt; &quot;&quot; And Me.cbparam4.Text &lt;&gt; &quot;&quot; And Me.cbop4.Text &lt;&gt; &quot;&quot; And Me.cbvalue4.Text &lt;&gt; &quot;&quot; Then&nbsp;<br> If Me.cbandor3.Text = &quot;und&quot; Then SQLWhere = SQLWhere + &quot; and &quot; + get_where(4)&nbsp;<br> If Me.cbandor3.Text = &quot;oder&quot; Then SQLWhere = SQLWhere + &quot; or &quot; + get_where(4)&nbsp;<br> Me.auswertungen.ParamCollection.Add(cbandor3.Text + &quot; &quot; + cbparam4.Text &amp; &quot; &quot; &amp; cbop4.Text &amp; &quot; &quot; &amp; cbvalue4.Text)&nbsp;<br> s = s + &quot; &quot; + cbandor3.Text + &quot; &quot; + cbparam4.Text &amp; &quot; &quot; &amp; cbop4.Text &amp; &quot; &quot; &amp; cbvalue4.Text&nbsp;<br> End If&nbsp;<br>&nbsp;<br> If Me.cbandor4.Text &lt;&gt; &quot;&quot; And Me.cbparam5.Text &lt;&gt; &quot;&quot; And Me.cbop5.Text &lt;&gt; &quot;&quot; And Me.cbvalue5.Text &lt;&gt; &quot;&quot; Then&nbsp;<br> If Me.cbandor4.Text = &quot;und&quot; Then SQLWhere = SQLWhere + &quot; and &quot; + get_where(5)&nbsp;<br> If Me.cbandor4.Text = &quot;oder&quot; Then SQLWhere = SQLWhere + &quot; or &quot; + get_where(5)&nbsp;<br> Me.auswertungen.ParamCollection.Add(cbandor4.Text + &quot; &quot; + cbparam5.Text &amp; &quot; &quot; &amp; cbop5.Text &amp; &quot; &quot; &amp; cbvalue5.Text)&nbsp;<br> s = s + &quot; &quot; + cbandor4.Text + &quot; &quot; + cbparam5.Text &amp; &quot; &quot; &amp; cbop5.Text &amp; &quot; &quot; &amp; cbvalue5.Text&nbsp;<br> End If&nbsp;<br> If Me.cbandor5.Text &lt;&gt; &quot;&quot; And Me.cbparam6.Text &lt;&gt; &quot;&quot; And Me.cbop6.Text &lt;&gt; &quot;&quot; And Me.cbvalue6.Text &lt;&gt; &quot;&quot; Then&nbsp;<br> If Me.cbandor5.Text = &quot;und&quot; Then SQLWhere = SQLWhere + &quot; and &quot; + get_where(6)&nbsp;<br> If Me.cbandor5.Text = &quot;oder&quot; Then SQLWhere = SQLWhere + &quot; or &quot; + get_where(6)&nbsp;<br> Me.auswertungen.ParamCollection.Add(cbandor5.Text + &quot; &quot; + cbparam6.Text &amp; &quot; &quot; &amp; cbop6.Text &amp; &quot; &quot; &amp; cbvalue6.Text)&nbsp;<br> s = s + &quot; &quot; + cbandor5.Text + &quot; &quot; + cbparam6.Text &amp; &quot; &quot; &amp; cbop6.Text &amp; &quot; &quot; &amp; cbvalue6.Text&nbsp;<br> End If&nbsp;<br> If Me.cbandor6.Text &lt;&gt; &quot;&quot; And Me.cbparam7.Text &lt;&gt; &quot;&quot; And Me.cbop7.Text &lt;&gt; &quot;&quot; And Me.cbvalue7.Text &lt;&gt; &quot;&quot; Then&nbsp;<br> If Me.cbandor6.Text = &quot;und&quot; Then SQLWhere = SQLWhere + &quot; and &quot; + get_where(7)&nbsp;<br> If Me.cbandor6.Text = &quot;oder&quot; Then SQLWhere = SQLWhere + &quot; or &quot; + get_where(7)&nbsp;<br> Me.auswertungen.ParamCollection.Add(cbandor6.Text + &quot; &quot; + cbparam7.Text &amp; &quot; &quot; &amp; cbop7.Text &amp; &quot; &quot; &amp; cbvalue7.Text)&nbsp;<br> s = s + &quot; &quot; + cbandor6.Text + &quot; &quot; + cbparam7.Text &amp; &quot; &quot; &amp; cbop7.Text &amp; &quot; &quot; &amp; cbvalue7.Text&nbsp;<br> End If&nbsp;<br> Me.auswertungen.FullParam = s&nbsp;<br> End Sub
</pre>
<H4 class="dtH4">Forderungen</H4>
<P><b class="le">Plattformen:&nbsp;</b>Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition</P>
<H4 class="dtH4">Siehe auch</H4>
<p>
<a href="topic_00000000000006E4.html">FrmReportSelect</a>
</p>
<DIV CLASS="footer">
<HR>
Generated by VBdocman .NET
<p>
</div></div>
</BODY>
</HTML>