Article View: free.it.visual-basic
Article #922Re: vb ed access
From: KillerBoy
Date: Wed, 12 Jan 2005 08:05
Date: Wed, 12 Jan 2005 08:05
47 lines
1861 bytes
1861 bytes
Byte <sarinfo@tin.it> ha scritto:
> ho fatto un piccolo pgm in vb che lancia un applicazione access.. mi
va in
> errore dicendo che il file � gi� aperto in modo esclusivo... o che il
file
> access non esiste.
>
> Il file access � esatto ed anche il persorso.....
> di seguito metto il programmino vb che ho scritto...... cosa ho fatto di
> sbalgiato??? Cosa vuol dire aperto in esclusivit� da altri se lo
utilizzo
> solo io??
>
> non sono esperto in Vb!!
> grazie a tutti
>
> Private Sub Form_Load()
>
> Dim objApp
> Dim AppPath
> Dim FileName
> Dim DBName
>
> AppPath = "c:\saripgm"
> DBName = "db2.mdb"
> Set objApp = CreateObject("Access.Application")
> objApp.OpenCurrentDatabase AppPath & DBName
> objApp.DoCmd.OpenReport "Stampa Fattura", acpreview
> objApp.CloseCurrentDatabase
> Set objApp = Nothing
>
>
> End Sub
>
sar� per il fatto che quando concateni AppPath e DBName ti restituisce
c:\saripgmdb2.mdb ?
--
------------------------
KillerBoy
killerboy@pippo.it
-------------------------
Inviato da www.mynewsgate.net
Technical Details
Message-ID:
<200501120805218573@mynewsgate.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!news-out.tin.it!news-in.tin.it!x-privat.org!not-for-mailReferences:
<OCPEd.671227$35.27165043@news4.tin.it>Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,db0804ac8b4872ab X-Google-Attributes: gidf94ee,public X-Google-Language: ITALIAN,ASCII From: "KillerBoy" <8573invalid@mynewsgate.net> Newsgroups: free.it.visual-basic Subject: Re: vb ed access Message-ID: <200501120805218573@mynewsgate.net> References: <OCPEd.671227$35.27165043@news4.tin.it> Date: Wed, 12 Jan 2005 08:05:21 GMT X-Newsreader: www.mynewsgate.net X-Complaints-To: abuse@mynewsgate.net NNTP-Posting-Host: 159.213.81.196 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!news-out.tin.it!news-in.tin.it!x-privat.org!not-for-mail