Re: How to display a query in a list box using a record set?
- From: "Rick Brandt" <rickbrandt2@xxxxxxxxxxx>
- Date: Mon, 16 Jan 2006 03:03:28 GMT
jim Bob wrote:
> Can someone help? I need to execute
> strSQL = "SELECT * FROM qry_viewFDOExport" when a button is pressed
> and the results displayed in a list box.
>
> I want to do something like
> Dim db As Database
> Dim rs As Recordset
> Set rs = db.OpenRecordset(strSQL) etc and then loop through all the
> results but I'm getting my head all mixed up with all the different
> ways of opening/creating a recordset.
> Thanks.
>
> *** Sent via Developersdex http://www.developersdex.com ***
Why don't you just use...
Me!ListBoxName.RowSource = "SELECT * FROM qry_viewFDOExport"
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- References:
- How to display a query in a list box using a record set?
- From: jim Bob
- How to display a query in a list box using a record set?
- Prev by Date: Re: Removal of Internet (web) bar at the top of the window
- Next by Date: Re: A2K - simple append of one record to another table needed
- Previous by thread: How to display a query in a list box using a record set?
- Next by thread: Re: How to display a query in a list box using a record set?
- Index(es):
Relevant Pages
|