Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 15th, 2005, 11:59 PM
plh plh is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 plh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 55 sec
Reputation Power: 0
Unhappy RecorsetClone Mystery

When I run, or I should say, try to run, the following, I get a type mismatch error on the line:

Set rst = Me.RecordsetClone

This is very puzzling since it is copied almost verbatim from the help files, and I have done this sort of thing before. There is something I am just not seeing! Any help would be greatly appreciated! (If there is anything else wrong, well I havn't had a chance to get that far yet!)

Thanx,
-plh

Private Sub cmdCloseAndPassValue_Click()
On Error GoTo Err_cmdCloseAndPassValue_Click
Dim rst As Recordset

Set rst = Me.RecordsetClone


Set varBookmark = rst.Bookmark
'rs = Nothing


DoCmd.OpenForm "frmToolAssems", acNormal, , , , , OpenArgs & ";" &
txtCurrTool.Value

DoCmd.Close acForm, "frmTools"

Exit_cmdCloseAndPassValue_Click:
Exit Sub

Err_cmdCloseAndPassValue_Click:
MsgBox Err.Description
Resume Exit_cmdCloseAndPassValue_Click

End Sub

Reply With Quote
  #2  
Old July 18th, 2005, 02:08 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Not seeing your complete code try this

Dim rst As Object

See if this corrects the problem

lwells

Reply With Quote
  #3  
Old July 19th, 2005, 11:17 PM
plh plh is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 plh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 55 sec
Reputation Power: 0
Thanks for the suggestion, but it turns out I did not have DAO loaded, only ADO when I loaded DAO and gave it a higher priority than ADO (not sure if this latter step was actually necessary) the problem went away.
-plh

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > RecorsetClone Mystery


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT