Wrox Programmer Forums
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 22nd, 2004, 11:18 AM
Authorized User
Join Date: Aug 2004
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to bisigreat
Default How do i populate datagrid from a recordset object

I need to populate a datagrid from this search criteriaDim cnSrch As

Dim rsSrch As ADODB.Recordset
Set cnSrch = New ADODB.Connection
    cnSrch.ConnectionString = "provider=microsoft.jet.oledb.4.0;" & "Data Source = C:\BB\sh.mdb"
    Set rsSrch = New ADODB.Recordset
    Dim findstr As String
findstr = "select * from PatientTab where CardType = '" & cboCardType & "'"
rsSrch.Open findstr, cnSrch, adOpenDynamic
Set DataGrid1.DataSource = rsSrch

Old September 22nd, 2004, 11:35 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

System.Data.OleDb also has access to MSAccess...

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i populate datagrid from a recordset object bisigreat VB How-To 1 August 6th, 2009 04:30 AM
Populate combobox from ADO recordset - RESOLVED! robzyc Access VBA 8 May 23rd, 2008 01:07 AM
Populate unbound form with recordset pacg Access VBA 2 September 26th, 2005 06:06 PM
populate data from Access Table into datagrid bisigreat VB How-To 6 August 17th, 2004 06:58 AM
using fields in recordset to populate textbox stoneman Access 2 October 7th, 2003 11:03 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.