🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.bazy-danych.msaccess
Article #73336

Re: Nazwa Pliku

#73336
From: Marcin Dzióbek
Date: Thu, 23 Oct 2003 10:17
16 lines
1433 bytes
> Eksportuje raport do pliku tekstowego
> Jakie są zmienne (Jak to zrobić) aby w nazwie raportu znajdowała się np.
> bieżąca data (20031022.txt) i nazwa pola np: ID_Klienta ??
> Cała nazwa miałaby wyglądać 01_101_20031022.txt


Może nie do końca rozumiem o co chodzi, ale robiłbym to tak:
....
Dim Nzw As String
Nzw = "01_" & [ID_Klienta] & Format(Date, "_YYYYMMDD") & ".txt"
DoCmd.OutputTo acOutputReport, "<nazwa raportu>", acFormatTXT, Nzw
....

Pozdr.
MDz
Technical Details
Message-ID: <bn8a0l$p8i$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <3f97a38f@news.home.net.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Marcin Dzióbek <m-dz@wp.pl.>
Newsgroups: pl.comp.bazy-danych.msaccess
Subject: Re: Nazwa Pliku
Date: Thu, 23 Oct 2003 12:17:01 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 19
Message-ID: <bn8a0l$p8i$1@atlantis.news.tpi.pl>
References: <3f97a38f@news.home.net.pl>
NNTP-Posting-Host: pa145.kolbuszowa.sdi.tpnet.pl
X-Trace: atlantis.news.tpi.pl 1066904406 25874 217.97.23.145 (23 Oct 2003 10:20:06 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 23 Oct 2003 10:20:06 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit