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.
131 lines
8.7 KiB
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(" ");
|
|
}
|
|
}
|
|
</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> </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 Basic]
|
|
</SPAN><B>Private Sub Get_SQLWhere()</B></PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Quellcode</H4>
|
|
<pre class="code"><SPAN class="lang">[Visual Basic]</SPAN>
|
|
Private Sub Get_SQLWhere() <br> Me.auswertungen.ParamCollection.Clear() <br> Dim s As String <br> Dim i As Integer <br> Me.SQLWhere = "" <br> <br> If Me.cbparam1.Text <> "" And Me.cbop1.Text <> "" And Me.cbvalue1.Text <> "" Then <br> Me.auswertungen.ParamCollection.Add(cbparam1.Text & " " & cbop1.Text & " " & cbvalue1.Text) <br> s = cbparam1.Text & " " & cbop1.Text & " " & cbvalue1.Text <br> SQLWhere = SQLWhere + get_where(1) <br> End If <br> If Me.cbandor1.Text <> "" And Me.cbparam2.Text <> "" And Me.cbop2.Text <> "" And Me.cbvalue2.Text <> "" Then <br> If Me.cbandor1.Text = "und" Then SQLWhere = SQLWhere + " and " + get_where(2) <br> If Me.cbandor1.Text = "oder" Then SQLWhere = SQLWhere + " or " + get_where(2) <br> Me.auswertungen.ParamCollection.Add(cbandor1.Text + " " + cbparam2.Text & " " & cbop2.Text & " " & cbvalue2.Text) <br> s = s & "' & Chr(10) & Chr(13) & '" & cbandor1.Text & " " & cbparam2.Text & " " & cbop2.Text & " " & cbvalue2.Text <br> End If <br> If Me.cbandor2.Text <> "" And Me.cbparam3.Text <> "" And Me.cbop3.Text <> "" And Me.cbvalue3.Text <> "" Then <br> If Me.cbandor2.Text = "und" Then SQLWhere = SQLWhere + " and " + get_where(3) <br> If Me.cbandor2.Text = "oder" Then SQLWhere = SQLWhere + " or " + get_where(3) <br> Me.auswertungen.ParamCollection.Add(cbandor2.Text + " " + cbparam3.Text & " " & cbop3.Text & " " & cbvalue3.Text) <br> s = s + " " + cbandor2.Text + " " + cbparam3.Text & " " & cbop3.Text & " " & cbvalue3.Text <br> End If <br> If Me.cbandor3.Text <> "" And Me.cbparam4.Text <> "" And Me.cbop4.Text <> "" And Me.cbvalue4.Text <> "" Then <br> If Me.cbandor3.Text = "und" Then SQLWhere = SQLWhere + " and " + get_where(4) <br> If Me.cbandor3.Text = "oder" Then SQLWhere = SQLWhere + " or " + get_where(4) <br> Me.auswertungen.ParamCollection.Add(cbandor3.Text + " " + cbparam4.Text & " " & cbop4.Text & " " & cbvalue4.Text) <br> s = s + " " + cbandor3.Text + " " + cbparam4.Text & " " & cbop4.Text & " " & cbvalue4.Text <br> End If <br> <br> If Me.cbandor4.Text <> "" And Me.cbparam5.Text <> "" And Me.cbop5.Text <> "" And Me.cbvalue5.Text <> "" Then <br> If Me.cbandor4.Text = "und" Then SQLWhere = SQLWhere + " and " + get_where(5) <br> If Me.cbandor4.Text = "oder" Then SQLWhere = SQLWhere + " or " + get_where(5) <br> Me.auswertungen.ParamCollection.Add(cbandor4.Text + " " + cbparam5.Text & " " & cbop5.Text & " " & cbvalue5.Text) <br> s = s + " " + cbandor4.Text + " " + cbparam5.Text & " " & cbop5.Text & " " & cbvalue5.Text <br> End If <br> If Me.cbandor5.Text <> "" And Me.cbparam6.Text <> "" And Me.cbop6.Text <> "" And Me.cbvalue6.Text <> "" Then <br> If Me.cbandor5.Text = "und" Then SQLWhere = SQLWhere + " and " + get_where(6) <br> If Me.cbandor5.Text = "oder" Then SQLWhere = SQLWhere + " or " + get_where(6) <br> Me.auswertungen.ParamCollection.Add(cbandor5.Text + " " + cbparam6.Text & " " & cbop6.Text & " " & cbvalue6.Text) <br> s = s + " " + cbandor5.Text + " " + cbparam6.Text & " " & cbop6.Text & " " & cbvalue6.Text <br> End If <br> If Me.cbandor6.Text <> "" And Me.cbparam7.Text <> "" And Me.cbop7.Text <> "" And Me.cbvalue7.Text <> "" Then <br> If Me.cbandor6.Text = "und" Then SQLWhere = SQLWhere + " and " + get_where(7) <br> If Me.cbandor6.Text = "oder" Then SQLWhere = SQLWhere + " or " + get_where(7) <br> Me.auswertungen.ParamCollection.Add(cbandor6.Text + " " + cbparam7.Text & " " & cbop7.Text & " " & cbvalue7.Text) <br> s = s + " " + cbandor6.Text + " " + cbparam7.Text & " " & cbop7.Text & " " & cbvalue7.Text <br> End If <br> Me.auswertungen.FullParam = s <br> End Sub
|
|
</pre>
|
|
|
|
|
|
|
|
<H4 class="dtH4">Forderungen</H4>
|
|
<P><b class="le">Plattformen: </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>
|
|
|