🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1822

Persistent or Dynamic fields?

#1822
From: Juan Luis Medina
Date: Tue, 10 Feb 2004 11:50
30 lines
1914 bytes
Hello all,
 
  Im creating a simple application in BCB6 in charge of authenticating
users by means of retrieving information from MS Access using ADO
components.

The table in the DB comprises several fields: username,password and
privileges and so far I have used only one TADOQuery with these 3
persistent fields.

Using this TADOQuery I want to make 2 different queries changing the
SQL property: The first query should retrieve only information about
the username and privileges and a second query should retrieve only
the password for a given username.

Because the first query doesnt retrieve any information about the
password, the program halts and gives an error. After removing the
password persistent field from the TADOQuery everything works
perfectly for the first query.

Do I have to use a different TADOQuery to retrieve the password
information?

Can I use the same TADOQuery to do everything?

Is this related with the fact that Im using persistent fields?

I hope I made myself clear, I would appreciate any feedback from you,

Juan Luis Medina
Technical Details
Message-ID: <f64d4f3d.0402100350.1f283ff4@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,d28ea950a9e100f,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-02-10 03:50:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: juanlu38@hotmail.com (Juan Luis Medina)
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Persistent or Dynamic fields?
Date: 10 Feb 2004 03:50:25 -0800
Organization: http://groups.google.com
Lines: 30
Message-ID: <f64d4f3d.0402100350.1f283ff4@posting.google.com>
NNTP-Posting-Host: 161.72.81.170
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1076413825 30807 127.0.0.1 (10 Feb 2004 11:50:25 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 10 Feb 2004 11:50:25 +0000 (UTC)