Re: SQL Query Help
- From: "Grant" <grantfullen@xxxxxxxxx>
- Date: Sun, 8 Oct 2006 13:52:01 -0400
Yes I need to loop through the rows
returned by the query and concatenate all of the returned ListNames
into a string. Well i need to loop through all and populate a combobox.
Thanks
Grant
"Bill Todd" <no@xxxxxx> wrote in message
news:45293a39$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Grant wrote:
Hi all I have a access database." mail.mdb".
I am trying to loop through all the records in a field. Field name is
"ListName". This is were I am.
ShowMessage(Query1.fieldbyname('ListName').AsString);
My Sql is. select * from ListNames where ListName = :param1.
So I want to show message of all info in the field ListName.
Thanks in advance for helping.
Your message is not clear. Unless ListName is the primary key your
SELECT may return more than one row. ShowMessage displays a dialog box
that contains a single string. Either you have to loop through the rows
returned by the query and concatenate all of the returned ListNames
into a string or you need to display the returned data in a DBGrid or
DBListBox.
--
Bill Todd (TeamB)
.
- Follow-Ups:
- Re: SQL Query Help
- From: Bill Todd
- Re: SQL Query Help
- References:
- SQL Query Help
- From: Grant
- Re: SQL Query Help
- From: Bill Todd
- SQL Query Help
- Prev by Date: Re: SQL Query Help
- Next by Date: Re: SQL Query Help
- Previous by thread: Re: SQL Query Help
- Next by thread: Re: SQL Query Help
- Index(es):
Relevant Pages
|