Solved Runtime Error 13 Type Mismatch (1 Viewer)

LanaR

Member
Local time
Today, 12:21
Joined
May 20, 2021
Messages
113
I must be missing something very basis as the following is throwing a Runtime Error 13 Type Mismatch

Code:
Dim rst As Recordset

Set rst = Me.RecordsetClone

On the Set command

The code is in the On Click event of a button
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 22:21
Joined
May 21, 2018
Messages
8,525
dim rst as dao.recordset

it is probably dimensioning it as and ADODB.recordset and the form returns a dao recordset thus a type mismatch.
 

LanaR

Member
Local time
Today, 12:21
Joined
May 20, 2021
Messages
113
Thanks that did the trick (y)
 

Users who are viewing this thread

Top Bottom