Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

VBA Error

Thread Tools
 
Search this Thread
 
Old 02 December 2002, 02:05 PM
  #1  
ChrisB
Moderator
Thread Starter
 
ChrisB's Avatar
 
Join Date: Dec 1998
Location: Staffs
Posts: 23,573
Likes: 0
Received 0 Likes on 0 Posts
Post

Access 2000 DB.

Dbl Click event for a list box...

Private Sub lstCalls_DblClick(Cancel As Integer)

Dim rst As Recordset

Set rst = Forms!frmCallIndex.RecordsetClone

I get a run-time error 7951 on the Set RST line "You entered an expression that has an invalid reference to the RecordsetClone property"

Using Me. instead of forms! gives the same problem

MS's own demo code suggest this should work...

Sub Print_Field_Names()

Dim rst As Recordset, intI As Integer
Dim fld As Field

Set rst = Me.RecordsetClone

Win 2000 Pro on my PC, Office 2000 Pro SP1.

Same problem in this DB on my laptop running XP Pro and Office 2000 Pro SP1.

I've compressed and repaired the database. I've exported all the forms etc into a new DB.

Nada, zip, nothing.

Thoughts?
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Sam Witwicky
Engine Management and ECU Remapping
17
13 November 2015 10:49 AM
Nick_Cat
Computer & Technology Related
2
26 September 2015 08:00 AM
Nimbus
Non Scooby Related
3
22 June 2001 12:21 PM
Stuart H
Non Scooby Related
2
17 January 2001 08:42 PM
Neil Smalley
ScoobyNet General
8
08 January 2001 06:57 PM



Quick Reply: VBA Error



All times are GMT +1. The time now is 07:01 AM.