-
Display 2 fields in my a database table in a list box
Hi Folks,
Can anybody show me how to display two fields in my database table as two
columns in my listbox
Thanks in advance.
Regards
-
Re: Display 2 fields in my a database table in a list box
"folbabe" <folbabe@hotmail.com> wrote:
>
>Hi Folks,
>
>Can anybody show me how to display two fields in my database table as two
>columns in my listbox
>
>Thanks in advance.
>
>
>Regards
Open a recordset with the two fields in it and then to the following:
Do Until Rs.EOF
Listbox1.AddNew
Rs!Field1 & vbtab & Rs!Field2
Loop
-
Re: Display 2 fields in my a database table in a list box
Hi Macca
I tried but it gives me a syntax error in the line below
Rs!Field1 & vbtab & Rs!Field2
Hope to read from you soon
"macca" <tim@agcl.net> wrote:
>
>"folbabe" <folbabe@hotmail.com> wrote:
>>
>>Hi Folks,
>>
>>Can anybody show me how to display two fields in my database table as two
>>columns in my listbox
>>
>>Thanks in advance.
>>
>>
>>Regards
>
>Open a recordset with the two fields in it and then to the following:
>
>Do Until Rs.EOF
> Listbox1.AddNew
> Rs!Field1 & vbtab & Rs!Field2
>Loop
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks