User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,944 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,901 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 130 | Replies: 1
Reply
Join Date: Jul 2008
Posts: 2
Reputation: electrosoul456 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
electrosoul456 electrosoul456 is offline Offline
Newbie Poster

How can i retrieve records from data base in data grid through unbound coding

  #1  
29 Days Ago
I am using this query

sql="select * from student"

if rs.state=1 then rs.close

rs.open sql,strcon,3,3

while not rs.eof

datagrid1.datasource=sql
datagrid1.refresh
wend

where as rs is a recordset variable and strcon defines the connection to the data base.
please guide me for correction
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Posts: 76
Reputation: manoshailu is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 6
manoshailu's Avatar
manoshailu manoshailu is offline Offline
Junior Poster in Training

Re: How can i retrieve records from data base in data grid through unbound coding

  #2  
29 Days Ago
HI,

you can try the coding, this could helpful to u.

sql="select * from student"

if rs.state=1 then rs.close

rs.CursorLocation = adUseClient

rs.open sql,strcon,3,3

Set DataGrid1.DataSource = rs

DataGrid1.Refresh

Shailaja

Originally Posted by electrosoul456 View Post
I am using this query

sql="select * from student"

if rs.state=1 then rs.close

rs.open sql,strcon,3,3

while not rs.eof

datagrid1.datasource=sql
datagrid1.refresh
wend

where as rs is a recordset variable and strcon defines the connection to the data base.
please guide me for correction
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 8:46 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC