🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #923

Re: vb ed access

#923
From: Byte
Date: Wed, 12 Jan 2005 09:27
68 lines
2851 bytes


"KillerBoy" <8573invalid@mynewsgate.net> ha scritto nel messaggio
news:200501120805218573@mynewsgate.net...
> 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

ho modificato l'errore   che mi hai trovato mettendo:
> > AppPath = "c:\saripgm\"
> > DBName = "db2.mdb"

dovrebbe essere esatto in questo modo....
ma ho sempre un errore 7866......
impossibile aprire il database. Il database � stato aperto da un altro
utente in accesso esclusivo o � mancante..

il db2.mdb  � nella cartella saripgm...

non riesco a capire....... non funziona niente altro sul pc mentre lancio
questa apllicazione..

Grazie per l' aiuto
Technical Details
Message-ID: <Y36Fd.395735$b5.19283834@news3.tin.it>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
References: <OCPEd.671227$35.27165043@news4.tin.it> <200501120805218573@mynewsgate.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,db0804ac8b4872ab
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
From: "Byte" <sarinfo@tin.it>
Newsgroups: free.it.visual-basic
References: <OCPEd.671227$35.27165043@news4.tin.it> <200501120805218573@mynewsgate.net>
Subject: Re: vb ed access
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <Y36Fd.395735$b5.19283834@news3.tin.it>
Date: Wed, 12 Jan 2005 09:27:20 GMT
NNTP-Posting-Host: 80.180.29.50
X-Complaints-To: "Please send abuse reports to abuse@tin.it and technical notifications to newsmaster@tin.it"
X-Trace: news3.tin.it 1105522040 80.180.29.50 (Wed, 12 Jan 2005 10:27:20 MET)
NNTP-Posting-Date: Wed, 12 Jan 2005 10:27:20 MET
Organization: TIN