Article View: borland.public.cppbuilder.database.ado
Article #314Re: Basic fetch record question
From: Viatcheslav V. Vassiliev
Date: Tue, 25 Jul 2006 19:25
Date: Tue, 25 Jul 2006 19:25
54 lines
3152 bytes
3152 bytes
Why do not you use ADO with CursorLocation = clClient without ClientDataSet? TDBLookupCombobox may be what you need. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "crhras" <crhras@sbcglobal.net> �������/�������� � �������� ���������: news:44c5176d$1@newsgroups.borland.com... > > ok, no answer to this question. Well, how about a little feedback > regarding it. Have I posted in the wrong group. Is the question too > basic ? I tried Googling to get an answer and couldn't find any sources > where this exact problem is discussed. I'm reading usage of datasets and > providers and each day find some clue which helps me to solve the problem > but I am afraid that the in-depth knowledge required will take me a month > or so. > > > > "crhras" <crhras@sbcglobal.net> wrote in message > news:44c188e0$1@newsgroups.borland.com... >>I have a database of phone numbers and names like this: >> >> phone VARCHAR(10); >> name VARCHAR(20); >> >> I want to be able to enter a phone number and check the database for a >> match and if found, display the name. If a match is not found, then a >> name can be entered and a new record will be added. >> >> The problem is I am using TDBEdit controls on the form which display the >> current value of the data fields to which they are linked. How can I >> blank the DBEdit control out and allow it to accept the phone number >> which I will be searching on. >> >> If phone number is the primary key then I can do it by calling SetKey() >> then EditKey() on the ClientDataSet and ReadOnly = false on the phone >> TDBEdit. But what if the phone number is not the primary key and I want >> to use Locate() instead to find the matching phone number ? >> >> In advance, >> Thank you, >> Curt >> >> >> > >
Technical Details
Message-ID:
<44c6702d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44c188e0$1@newsgroups.borland.com> <44c5176d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,2055e5449f3325c0 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <44c188e0$1@newsgroups.borland.com> <44c5176d$1@newsgroups.borland.com> Subject: Re: Basic fetch record question Date: Tue, 25 Jul 2006 23:25:25 +0400 Lines: 56 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response X-Antivirus: avast! (VPS 0630-1, 24.07.2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 85.93.138.132 Message-ID: <44c6702d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1153855533 85.93.138.132 (25 Jul 2006 12:25:33 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail