P
Patrick Dixon
It appears to me that Access 2002 has a defect. I am
trying to do about the simplest thing, open an existing
table from a local VBA module. In other words, I have an
Access mdb file with a table "test" and a
module "testmod". All I want to do is open the table and
see what's in it. I have years of VBA/Access exprience
and have used this more times than I can count.
I am getting a "type mismatch" error on the "set test
= .. " statement. The code is below. Can someone tell me
what I am doing wrong, or tell me who at MicroSoft I can
complain to?
Sub testmod()
Dim test As Recordset
Set test = CurrentDb.OpenRecordset("txall_copy")
While Not test.EOF
MsgBox ("Member " & test.Fields(1).Value & "")
test.MoveNext
Wend
End Sub
trying to do about the simplest thing, open an existing
table from a local VBA module. In other words, I have an
Access mdb file with a table "test" and a
module "testmod". All I want to do is open the table and
see what's in it. I have years of VBA/Access exprience
and have used this more times than I can count.
I am getting a "type mismatch" error on the "set test
= .. " statement. The code is below. Can someone tell me
what I am doing wrong, or tell me who at MicroSoft I can
complain to?
Sub testmod()
Dim test As Recordset
Set test = CurrentDb.OpenRecordset("txall_copy")
While Not test.EOF
MsgBox ("Member " & test.Fields(1).Value & "")
test.MoveNext
Wend
End Sub