Missing reference in Excel 2016

The_Kurgan

Active Member
Joined
Jan 10, 2006
Messages
270
I do a lot of automation between Excel and Access. Unfortunately, I’ve been switched to Excel 2016 and am now missing the “Access Developer Extensions Type Library” reference. Below is just a sample piece of code I would use that is now puking due to the missing reference. Has anyone found a work-around for this? TIA!

Code:
'Create the Recordset object
Set RS = New ADODB.Recordset
RS.CursorLocation = adUseClient


strSQL = "SELECT Phnx_LoanLevel_Master.Data_Date AS Phnx_DT FROM Phnx_LoanLevel_Master GROUP BY Phnx_LoanLevel_Master.Data_Date ORDER BY Phnx_LoanLevel_Master.Data_Date DESC;"
RS.Open strSQL, cn, adOpenStatic, adLockBatchOptimistic
RS.MoveFirst
Do Until RS.EOF = True
    Start_Frm.ListBox1.AddItem RS.Fields(0)
    RS.MoveNext
Loop
 
Last edited:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
What do you use that reference for? It has nothing to do with that code.
 
Upvote 0
Without that reference, the code halts immediately and highlights
Code:
RS.CursorLocation = adUseClient

I have a short window where I can use an older version of Excel which contains that reference and it works fine.

If I remove the missing reference, the code will run, but ithangs on

Code:
[COLOR=#574123][FONT=Calibri]RS.Open strSQL, cn, adOpenStatic,adLockBatchOptimistic[/FONT][/COLOR]
 
Last edited:
Upvote 0
That code needs a reference to an Activex data objects library, but not developer extensions.
 
Upvote 0
Ok, thank you. I do have the ActiveX box checked. I've tried 6.0 and then 2.8 and it still hangs on the line that opens the recordset. I was switched to a new version of Citrix, but I can't imagine that would have such an effect.
 
Upvote 0
The fact it hangs is not likely to be related to references. I'd suspect a connection issue. Does it timeout eventually?
 
Upvote 0
Sorry for the delay in my posting. I thought I had replied to your question before I left for vacation.

It does not seem to timeout. It usually takes a couple seconds to run, but I have killed it after as much as 30 minutes since the issue started.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,171
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top