By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,631 Members | 892 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,631 IT Pros & Developers. It's quick & easy.

Type Mismatch Error

P: n/a
I get this "Run-Time error '13': Type Mismatch" when I run the sample code
below. The debugger highlight the line "Set MSHFlexGrid1.DataSource = rs"
Any ideas? I am using VB6.

Thanks,

duha

----------------------
Option Explicit
Public db As Database
Public rs As Recordset
Public SQL As String
----------------------
Private Sub Form_Load()
Set db = OpenDatabase("C:\VB98\NewDB.MDB")
SQL = "Select Fiches.English from [Fiches];"
Set rs = db.OpenRecordset(SQL, dbOpenDynaset)
Set MSHFlexGrid1.DataSource = rs
End Sub
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Duha,

From the things people who use VB.net do not like are
Working with the recordset and the mshflexgrid

You asking something for VB6.

Probably it is better to ask your question in a VB classic newsgroup.

Microsoft.public.vb* (there are more)

I hope you find your answer

Cor
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.