🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problemi ricerca in database

#2610
From: Luca
Date: Thu, 27 Mar 2003 10:57
22 lines
1867 bytes
Cosa non ve nel codice sottostante? Perch� se immetto un valore in inputbox
mi va in errore e dice che non � un indice di questa tabella. Campouno � un
campo di una tabella di access collegata con data al form, non basta questo?
Che cosa vuol dire che "Esaminare l'insieme Indexes dell'oggetto TableDef
per determinare i nomi di indice validi". Scusate se non uso termini adatti
ma sono alle prime armi.
Grazie a chi mi sapr� aiutare

Private Sub Command1_Click()
Dim NomeDaCercare As String
NomeDaCercare = InputBox$("IMMETTERE NOME DA CERCARE:", "RICERCA
NELL'AGENDA")
If NomeDaCercare <> "" Then
Data1.Recordset.Index = "campouno"
Data1.Recordset.Seek "=", NomeDaCercare
If Data1.Recordset.NoMatch Then
Data1.Recordset.MoveFirst
Data1.Refresh
MsgBox "NOME NON TROVATO"
End If
End If
End Sub
Technical Details
Message-ID: <bOAga.24277$i26.607148@news2.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news2.tin.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,21388e9c0fa47a53,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2003-03-27 02:57:18 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news2.tin.it.POSTED!not-for-mail
From: "Luca" <noce78@libero.it>
Newsgroups: free.it.visual-basic
Subject: Problemi ricerca in database
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Message-ID: <bOAga.24277$i26.607148@news2.tin.it>
Date: Thu, 27 Mar 2003 10:57:11 GMT
NNTP-Posting-Host: 80.104.63.242
X-Complaints-To: newsmaster@tin.it
X-Trace: news2.tin.it 1048762631 80.104.63.242 (Thu, 27 Mar 2003 11:57:11 MET)
NNTP-Posting-Date: Thu, 27 Mar 2003 11:57:11 MET
Organization: TIN