🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Prob. Con Database

#2953
From: Claudio
Date: Tue, 17 Dec 2002 11:28
24 lines
1807 bytes
ciao a tutti,

ho un applicativo che tramite un controllo DATA, deve accedere ad un
database. Questo database, potrebbe non essere sempre nella stessa posizione
sul disco, quindi devo impostare la propriet� DatabaseName del controllo
Data, necessariamente da codice e questo � quello che ho scritto :

mdb_bpco =  "bpco.mdb"
connettia = "c:\Programmi\Scheda BPCO" & "\" & mdb_bpco
data1.DatabaseName = connettia

poi devo settare il RecordSource, quindi ho scritto :

data1.RecordSource = "scheda"      'dove "scheda" � una delle tabelle del
DB.

A me sembra tutto regolare, ma se vado a  fargli un
data1.Recordset.RecordCount , questo risulta sempre a 0, ma nella tabella ci
sono parecchi records .

Dove sbaglio !??!!?

grazie mille a tutti e ciao
Claudio .
Technical Details
Message-ID: <TTDL9.23570$TC5.764915@twister1.libero.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news2.euro.net!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,d2e6c47e6274db51,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2002-12-17 03:30:27 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news2.euro.net!news.mailgate.org!nntp.infostrada.it!twister1.libero.it.POSTED!not-for-mail
From: "Claudio" <clabago@libero.it>
Newsgroups: free.it.visual-basic
Subject: Prob. Con Database
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <TTDL9.23570$TC5.764915@twister1.libero.it>
Date: Tue, 17 Dec 2002 11:28:51 GMT
NNTP-Posting-Host: 151.28.146.3
X-Complaints-To: abuse@libero.it
X-Trace: twister1.libero.it 1040124531 151.28.146.3 (Tue, 17 Dec 2002 12:28:51 MET)
NNTP-Posting-Date: Tue, 17 Dec 2002 12:28:51 MET
Organization: [Infostrada]