M
MJatAflac
I am trying to run a procedure in one database from a different database. I
have the db referenced in the library so that I can call it from the current
db. It works great until I get to a place in my code that refers to the db as
currentdb(), in other words as soon as I hit
dim db as database
set db = currentdb()
I begin to get item not in collection issues... I assume this is because vba
is looking for them in the wrong db because of the currentdb reference. How
do I get around this?
Thanks,
have the db referenced in the library so that I can call it from the current
db. It works great until I get to a place in my code that refers to the db as
currentdb(), in other words as soon as I hit
dim db as database
set db = currentdb()
I begin to get item not in collection issues... I assume this is because vba
is looking for them in the wrong db because of the currentdb reference. How
do I get around this?
Thanks,