# Grid不能用

Posted by 金光妞 on November 17, 1997 at 02:12:27:

小吴大哥~~
我买了vb6专业版了,,可是我原本的grid不能用
snapshot也不能用
请问你能不能告诉我如何修正???

我的snapshot~~

Dim db As Database, Table As Recordset
Dim nam As Snapshot
Dim SQLstr As String

Set db = Workspaces(0).OpenDatabase("nc.MDB", False, True)
Set Table = db.OpenRecordset("nc", dbOpenTable)
...
...
SQLstr = "select * from nc where aname like '*" & Text1 & "*'"
Set nam = db.CreateSnapshot(SQLstr)
...
...

在4.0都可以跑
可是在5.0在dim nam as snapshot
这一行就停住了

请帮帮我啦

Follow Ups:

- 你有设参照吗? 小吴 16:58:55 11/18/97 (1)
  - 谢谢你~!~ 金光妞 18:17:05 11/18/97 (0)