| | |
VB6 - Access Database
![]() |
Hi.... I am a student.
When i tried to connect VB with Access, it is giving me this message "Run-time error 13, Type Mismatch" Below is the code
The funniest thing is, this same code works on another project on the same computer.
Somebody help meeeeeeeeeeeee.
When i tried to connect VB with Access, it is giving me this message "Run-time error 13, Type Mismatch" Below is the code
vb Syntax (Toggle Plain Text)
Dim DBase As Database Dim RBase As Recordset Set DBase = OpenDatabase("DB Name") Set RBase = DBase.OpenRecordset("Table name")
The funniest thing is, this same code works on another project on the same computer.
Somebody help meeeeeeeeeeeee.
Last edited by peter_budo; 23 Days Ago at 8:42 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
0
#7 16 Days Ago
•
•
•
•
Dim DBase As Database
Dim RBase As Recordset
Set DBase = OpenDatabase("DB Name")
Set RBase = DBase.OpenRecordset("Table name")
Which line shows the error ?
Make sure that the data saved to the database is of the same datatype of those in the Fields...
eg: "abcd"(string) to IntegerField is not applicable...
![]() |
Similar Threads
- How to import a Microsoft Access database into mySQL by using c# (C#)
- packaging and transfering VB6 and MS acess database (Visual Basic 4 / 5 / 6)
- Password protect Access Database & connect via VB6 (Visual Basic 4 / 5 / 6)
- VB6 ACCESS database Connection Query (Visual Basic 4 / 5 / 6)
- VB6 - Locate/Access Database in a Server directory (Visual Basic 4 / 5 / 6)
- simultaneous MS Access Database access problem using VB6 program. (Visual Basic 4 / 5 / 6)
- How To Connect VB6.0 (Access Database) Using ODBC (Visual Basic 4 / 5 / 6)
- Pls help me regarding to access database in vb6 (Visual Basic 4 / 5 / 6)
- VB6 and MS Access 2002 (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Error!!!
- Next Thread: Login form + calculator
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





