General information
Category:
Database DAO/RDO/ODBC/ADO
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only