Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type mismatch
Message
 
À
14/07/2000 03:49:07
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00392265
Message ID:
00392435
Vues:
8
>Anybody please help me, I found confusing problem, when my form with the below codes run, the error message "Type mismatch occurs" .. why?
>
>Dim mApp As String
>Dim daoPBXConfig As Database
>Dim rsPBXConfig As Recordset
>
>Private Sub Form_Load()
>'
>mApp = App.Path & "\TeCS.MDB"
>Timer1.Enabled = True
>CurrPBXList.DatabaseName = mApp
>'
>Set daoPBXConfig = OpenDatabase(CurrPBXList.DatabaseName)
>Set rsPBXConfig = daoPBXConfig.OpenRecordset("Select * from CurrPBXList")
>
>With Form8
>.Top = (Screen.height - .height) / 2
>.Left = (Screen.width - .width) / 2
>End With
>'
>End Sub
>
>Thank you

Are you referencing DAO and ADO in your app?

Specify the library like this:
Dim daoPBXConfig As DAO.Database
Dim rsPBXConfig As DAO.Recordset
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform