Isn't allowing me to choose References
"Douglas J. Steele" wrote:
[Quoted Text] > If that line is causing a compile error, odds are that a reference has not > been set to ADO. > > While in the VB Editor, select Tools | References from the menu bar. Scroll > through the list of available references until you find the one for > Microsoft ActiveX Data Objects 2.n Library (n will be something between 0 > and 8). Select one of them (2.5 is probably a good choice). > > -- > Doug Steele, Microsoft Access MVP > http://I.Am/DougSteele> (no e-mails, please!) > > > "Bernie" <Bernie[ at ]discussions.microsoft.com> wrote in message > news:7CD88EB7-C83A-4B13-B8D8-D36DE86647F9[ at ]microsoft.com... > > Hope this is the right group to post this in. I copied a macro from one > > workbook to another which draws data from an access database to a > > worksheet > > in Excel. Everything looked right until I ran the macro. I got a compile > > error and the line that was highlighted is below: > > > > Dim cnn As New ADODB.Connection > > > > What does this mean? How do I fix it? > > > > > > >
|