VB for Application

Guy26

New member
VB for Application

this code don´t work : Dim db As Database, tbl As Recordset Dim word As String Dim name As String name="NAME1" ´***the table name Set db = CurrentDb() Set tbl = db.OpenRecordset(name, dbOpenDynaset) MsgBox tbl! tbl.Close the error I get is about this line : Set tbl = db.OpenRecordset(name, dbOpenDynaset) run time error ´13´ type mismatch helppppppppppppppp p.s. the DAO 3.6 is include.
 

גרי רשף

New member
תיקון הקוד

אצלי הקוד רץ, ושגיאה 13 נוצרה בשורת ה-MsgBox. עלייך לכתוב MsgBox tbl.name כדי לקבל את שם הטבלה.
 

Guy26

New member
תודה

אלון, תודה רבה, זאת היתה בדיוק הבעיה. שוב תודה עזרת לי מאד
 
למעלה