Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
近期文章
文章分類
網站連結
Syndicate

« | »

Access Recordset 型態不符合

2011-01-04 @ 14:41 in Windows

今天在寫 access vba 時用了 DAO 的 Recordset ,設定如下

    Dim db As Database
    Dim rs As Recordset
    Set db = CurrentDb
    Set rs = db.OpenRecordset("資料表", dbOpenDynaset)

執行時一直顯示 型態不符合在 Set rs = db.OpenRecordset("資料表", dbOpenDynaset) 這一行

後來在網上找到將 Dim rs As Recordset 改成 Dim rs As DAO.Recordset  就可以了,好像是那一個 ActiveX 也用到 Recordset , 它搞混了

迴響

Access Recordset 型態不符合 | 豬窩

Hi there! This post couldn't be written any better! Reading through this post reminds me of my
previous room mate! He always kept chatting about this.
I will forward this article to him. Pretty sure he will have a good read.
Thanks for sharing!

作者 ceshi.sntom.com @ 19:48, 2020-06-26

Access Recordset 型態不符合 | 豬窩

Hi there, after reading this awesome paragraph i am as well glad to share my knowledge here with friends.

作者 schalav.net @ 14:24, 2020-06-27

Access Recordset 型態不符合 | 豬窩

Hello, Neat post. There's an issue with your website in internet explorer,
could check this? IE nonetheless is the market leader
and a big component of folks will leave out your fantastic
writing due to this problem.

作者 cbd oil that works 2020 @ 23:30, 2020-06-27

Access Recordset 型態不符合 | 豬窩

Superb, what a web site it is! This blog provides valuable
data to us, keep it up.

作者 cbd oil that works 2020 @ 00:17, 2020-06-28

Access Recordset 型態不符合 | 豬窩

Actually when someone doesn't understand then its
up to other viewers that they will assist, so here it
occurs.

作者 cbd oil that works 2020 @ 09:58, 2020-06-28
發表迴響
 authimage