A
alex
Determine References Used
Hello,
Using Access ’03…
I just rolled out an mde to a test group of users…
Several were successful, but I had one crash due to a DAO reference
not established. The development PC used 3.6 and user’s PC had no DAO
reference checked and only DAO 2.something available.
Being a novice programmer, I get a lot of help from groups like this;
while I strive to know what the code does, I often am unsure about the
references used with the code.
I found some helpful information from Doug’s site here:
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
I’m inquiring if it’s possible to run code to determine the references
needed to run a particular application? The html doc above has this
code:
Dim refCurr As Reference
For Each refCurr In Application.References
Debug.Print refCurr.Name & ": " & refCurr.FullPath
Next
Which says is used to determine all of the required references, but
only seems to list the checked (Tools > References) references and not
the ones required by any/all of the modules in the current
application; i.e., what references are required for the code to work?
I’m guessing that a simple mde/mdb with no code does not require a
reference to DAO or ADO.
For example, if you were going to roll out an mde to many workstations
and you knew there were some without the DAO reference, you could
modify (or never start) your code so it did not require such a
reference (as long as you were able to of course).
Any advice on this issue would be greatly appreciated,
alex
Hello,
Using Access ’03…
I just rolled out an mde to a test group of users…
Several were successful, but I had one crash due to a DAO reference
not established. The development PC used 3.6 and user’s PC had no DAO
reference checked and only DAO 2.something available.
Being a novice programmer, I get a lot of help from groups like this;
while I strive to know what the code does, I often am unsure about the
references used with the code.
I found some helpful information from Doug’s site here:
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
I’m inquiring if it’s possible to run code to determine the references
needed to run a particular application? The html doc above has this
code:
Dim refCurr As Reference
For Each refCurr In Application.References
Debug.Print refCurr.Name & ": " & refCurr.FullPath
Next
Which says is used to determine all of the required references, but
only seems to list the checked (Tools > References) references and not
the ones required by any/all of the modules in the current
application; i.e., what references are required for the code to work?
I’m guessing that a simple mde/mdb with no code does not require a
reference to DAO or ADO.
For example, if you were going to roll out an mde to many workstations
and you knew there were some without the DAO reference, you could
modify (or never start) your code so it did not require such a
reference (as long as you were able to of course).
Any advice on this issue would be greatly appreciated,
alex