Re: New to Sql Database's
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Thu, 03 May 2007 22:17:06 -0500
From the looks of your code there is no need to do the locate. You query isvery selective and should only return one record anyway. After the open you
can just assign the Caption property...
My guess is he is trying to eliminate a query that returns no records.
If DataSetCustomer.RecordCount >0 then
Would handle that a bit more elegantly
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- New to Sql Database's
- From: Donald S. Bossen
- Re: New to Sql Database's
- From: Brian Hollister
- New to Sql Database's
- Prev by Date: Re: TConnection.Open question
- Next by Date: Re: Batchupdates performance
- Previous by thread: Re: New to Sql Database's
- Next by thread: Re: TConnection.Open question
- Index(es):
Relevant Pages
|