Trouble with Me.RecordsetClone!!! (1 Viewer)

muratas2

Registered User.
Local time
Today, 21:29
Joined
Jan 18, 2000
Messages
16
Hi,
I have below sub on the click event of a command button on a form which has a query as a Record Source.

Dim rst as Recordset
set rst = Me.RecordsetClone

On the secont line I received " Run Time Error 13 - Type Mismatch "

Why can it be? I saw many similar codes in some books...

Please help, thanks

Murat
 

R. Hicks

AWF VIP
Local time
Today, 15:29
Joined
Dec 23, 1999
Messages
619
There is not any problem with the two lines of code. Your code may only be stopping on the second line but the problem must be after the second line. Post the rest of the sub for us to see.

RDH
 

Travis

Registered User.
Local time
Today, 13:29
Joined
Dec 17, 1999
Messages
1,332
You may need to check to make sure your references are set (especially if you are using Access 2000).
 

Danielf

Registered User.
Local time
Today, 21:29
Joined
Feb 21, 2000
Messages
103
I have the same problem as Muratas 2.
Which references should be set?

Thanks for answer.

Daniel
 

Users who are viewing this thread

Top Bottom