# Re: Use DAO 出现型态不符之错误讯息 , 请大家帮忙,谢谢 (PS:Use VB6)

Posted by Danice on July 14, 1999 at 09:24:02:

In Reply to: Use DAO 出现型态不符之错误讯息 , 请大家帮忙,谢谢 (PS:Use VB6) posted by 皮皮 on July 14, 1999 at 08:41:13:

: 请大家帮忙,谢谢

: Dim db As Database
: Dim rs As Recordset

: Dim dbpath As String
: dbpath = App.Path + "\..\pro\pro.mdb"

: Set db = DBEngine.Workspaces(0).OpenDatabase(dbpath)
: Set rs = db.OpenRecordset("aoi") <---------- 出现型态不符之错误讯息

你所写的 "aoi" 是什么东西? 是字串变数吗? 还是档案名?
请参阅 openrecordset 的参数说明.

Follow Ups:

- Re: Use DAO 出现型态不符之错误讯息 , 请大家帮忙,谢谢 (PS:Use VB6) 皮皮 09:31:09 7/14/99 (0)