?
Solved

Unbound data control

Posted on 2003-03-04
3
Medium Priority
?
149 Views
Last Modified: 2013-12-26

how to view data(recordset) in dbgrid with adodc, i had this code but i don't understand what parameter that i have to pass ?

i copied this code from asaflahv1 answer,

## i know RSName is adodb connection but what about GRDName, what is the value for this parameter ?

i hope somebody can help me, especially mr/ms asaflahv1


Private Sub FillGrid(GRDName As dbgrid, RSName As ADODB.Recordset)

Dim i As Integer
GRDName.Cols = RSName.Fields.Count
RSName.MoveFirst
While Not RSName.EOF
   GRDName.AddItem RSName.Fields(0).Value
   GRDName.Row = RSName.AbsolutePosition
   For i = 0 To GRDName.Cols - 1
       GRDName.Col = i
       GRDName.Text = RSName.Fields(i).Value
   Next i
   RSName.MoveNext
Wend
End Sub
0
Comment
Question by:yana8779
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
JohnMcCann earned 400 total points
ID: 8069664
GRDName is a DBGrid

Taken from

Private Sub FillGrid(GRDName As dbgrid, RSName As ADODB.Recordset)

The value would be the DBGrid to fill

As in

FillGrid DBGrid1, rs

0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 9053154
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in a week or two.  I would appreciate any comments by the experts that would help me in making a recommendation.

It is assumed that any participant not responding to this request is no longer interested in its final deposition.

If the asker does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 9116494
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

 -->Accept JohnMcCann's comment as Answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER

GPrentice00
Cleanup Volunteer
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question