|
Pacific Database |
|
| Home Company Services Employment Support Centre Contact Us | |
|
A world of information at your fingertips |
|
How do I add a reference to an Access project?In order to use certain external facilities, such as Excel functions or functionality provided by third-party controls, and so on, you must add a reference to their type libraries in the Access project.
Dim rs As Recordset ...and you have both the ADOX and DAO libraries referenced, Access will attempt to use the first recordset object it comes to, regardless of what you had intended. To ensure that Access uses the correct library, move the library's reference to the higher position in the list using the up & down arrows. In the above example, Access will attempt to use the DAO 3.6 library before it attempts to use the ADOX library. Of course, the best approach is to disambiguate your code, like so: Dim rsD As DAO.Recordset Dim rsA As ADODB.Recordset ...so there is no confusion. In most cases, however, there is little need to change the order of precedence. |
Tested on...
The References dialog
|
| Home • Company • Services • Employment • Support Centre • Contact Us | Pacific Database © 2008 |