borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Adding Data in a table with relationships using ADO)Next Topic (Simple problem on Datacombo.) New Topic New Poll Post Reply
AndreaVB Forum : Database : Fetching data From MSFlexGrid
Poster Message
babyg
Level: Scholar

Registered: 15-10-2003
Posts: 32

icon Fetching data From MSFlexGrid

help,
im trying to test out if i got the correct data in msflexgrid1
Private Sub MSFlexGrid1_DblClick()
Dim RSfn As ADODB.Recordset
Dim strFN As String
Set RSfn = New ADODB.Recordset
strFN = MSFlexGrid1.TextMatrix(MSFlexGrid1.Row, MSFlexGrid1.Col)
MsgBox strFN ' Just to test if i captured the content of the cell
RSfn.Open ("select firstname from employees where lastname = '" & strFN & "'"), CNfr
MsgBox RSfn!firstname ' test the recordset
End Sub


i get the error
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. (runtime error 3001)


what i want to happen is when i click on the lastname of the employee in msflexgrid a new form will open and display the data of the the said employee...

tnx.

____________________________
help... im a fish.

12-01-2005 at 04:23 AM
View Profile Send Email to User Show All Posts | Quote Reply
babyg
Level: Scholar

Registered: 15-10-2003
Posts: 32
icon Re: Fetching data From MSFlexGrid

WHOOOOPS... my bad... i closed the connection somewhere in the code.. it works now..

____________________________
help... im a fish.

12-01-2005 at 05:58 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : Fetching data From MSFlexGrid
Previous Topic (Adding Data in a table with relationships using ADO)Next Topic (Simple problem on Datacombo.) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder