Article View: borland.public.cppbuilder.database.ado
Article #3542Re: Question about ADOQuery
From: Jackie
Date: Wed, 31 Jul 2002 04:28
Date: Wed, 31 Jul 2002 04:28
57 lines
2612 bytes
2612 bytes
Hi Ronald Thank for your helping if set the AutoEdit to false it will have a throw exception when editing the DBEdit dose it have something call Auto commit and can be set to false. the idea is when a user browsing a list of record through the DBGrid, and if he carelessly put the keyboard without any noetic, and he still go on to browse the record, this will cause the wrong record. i just want to avoid that. Thanks a lot "Ronald Loonstra" <r.loonstra@codefit.nl> ���g��l�� news:3d475762$1_1@dnews... > Set the AutoEdit-property of the TDataSource to false. > > Maybe this helps. > -- > HTH > > Ronald Loonstra > CodeFit Applications > www.codefit.nl > > "Jackie" <tkfi@hotmail.com> schreef in bericht news:3d472b9d$1_1@dnews... > > Dear All > > > > let say i have a ADOConnection ADOQuery DataSource DBGrid and some DBEdit > , > > all are connect to a MS-Access database, every thing is working , but > there > > has a problem, where the ADOQuery is active, the DBGrid list all record on > a > > table and the DBEdit display one of the record that i have select , in > this > > time if i input something on the DBEdit , and move the pointer to the next > > record or use mouse click on other record in the DBGrid, the previous > record > > (that i have input something on) will than be change, if i don't want to > > change the record ( but i already input something on the some DBEdit ), i > > have to call "ADOQuery->Cancel" to cancel the change before i move the > > pointer, how i set the DBEdit can be accessable (can input not read only) > > but won't change the record after i move the pointer. > > > > Please help > > Thank a lot > > > > > >
Technical Details
Message-ID:
<3d4767ba$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3d472b9d$1_1@dnews> <3d475762$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,99b6fc4567ab9216 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-07-30 21:47:27 PST From: "Jackie" <tkfi@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3d472b9d$1_1@dnews> <3d475762$1_1@dnews> Subject: Re: Question about ADOQuery Date: Wed, 31 Jul 2002 12:28:13 +0800 Lines: 59 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 202.175.76.61 Message-ID: <3d4767ba$1_1@dnews> X-Trace: dnews 1028089786 202.175.76.61 (30 Jul 2002 21:29:46 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews