Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Automate compil...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 30253 of 31596
Post > Topic >>

Automate compile and save...

by "Matthew Wells" <Matthew.Wells@[EMAIL PROTECTED] > May 13, 2008 at 02:59 PM

Hello,

    I'm trying to automate changing a reference library from one mdb in 
another.  I've found a syscmd call that says it does the trick -
sometimes. 
My code in db1 is

dim app as Access.Application
set app = new Access.Application
app.OpenCurrentDatabase"db2.mdb")
app.Run("CheckReferences")

The CheckReferences function works fine when I run it from within db2.mdb
- 
and I know it fires when it runs from app because I put a msgbox in the 
function just to make sure.  The odd thing is that I try to step through
the 
code in app and into CheckReferences but it won't go "into" - only over -
at 
least the first time.  After the line is stepped over, I'll set the 
execution point back on the line and then it will step into
CheckReferences 
and everything will work.  Wierd.  I tried running CheckReferences twice 
just to see what would happen, but that didn't work.  I have other
functions 
that fire during this process that run fine.  I fired app.syscmd(504,
16483) 
after the call as well - no good.

Any ideas?

Thanks.

-- 
Matthew.Wells
Matthew.Wells@[EMAIL PROTECTED]

 




 1 Posts in Topic:
Automate compile and save...
"Matthew Wells"  2008-05-13 14:59:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 11:44:14 CST 2008.