Article View: pl.comp.bazy-danych.msaccess
Article #124991Re: Drukowanie selektywne
From: Krzysztof Pozorek
Date: Wed, 13 Aug 2008 08:36
Date: Wed, 13 Aug 2008 08:36
22 lines
1349 bytes
1349 bytes
(...)
> Private Sub btnDrukuj_Click()
> Dim stDocName As String
> If Me.KOD = 0 Then
> stDocName = "rpt_1"
> If Me.KOD = 1 Then
> 'stDocName = "rpt_2"
> If Me.KOD = 2 Then
> 'stDocName = "rpt_3"
>
> End If
Raczej chodzilo Ci pewnie o zapis:
If Me.KOD = 0 Then
stDocName = "rpt_1"
Else If Me.KOD = 1 Then
(...itd)
Gdyby roznica nie byla zbyt widoczna, to zwracam uwage na slowo Else.
K.P.
Technical Details
Message-ID:
<g7u6e9$m3r$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mailReferences:
<g7sv2o$p62$1@atlantis.news.neostrada.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail From: "Krzysztof Pozorek" <access@vis.pl> Newsgroups: pl.comp.bazy-danych.msaccess Subject: Re: Drukowanie selektywne Date: Wed, 13 Aug 2008 10:36:24 +0200 Organization: Onet.pl Lines: 24 Message-ID: <g7u6e9$m3r$1@news.onet.pl> References: <g7sv2o$p62$1@atlantis.news.neostrada.pl> NNTP-Posting-Host: host-80-252-3-216.gazeta.pl X-Trace: news.onet.pl 1218616585 22651 80.252.3.216 (13 Aug 2008 08:36:25 GMT) X-Complaints-To: usenet@news.onet.pl NNTP-Posting-Date: Wed, 13 Aug 2008 08:36:25 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-Sender: 6AlSfP2c2oqZicId54ECp7ZgtmrPSZ6Q X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-Priority: 3 X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit