473,395 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Automate compile and save...

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
Ma***********@FirstByte.net
Jun 27 '08 #1
0 926

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Chris | last post by:
Hello all, I wish to automate printing of PDF documents in a C# application. Is there an Adobe .net object? I tried to create a reference to the COM Object Adobe Type Library, but I get error...
16
by: cyranoVR | last post by:
This is the approach I used to automate printing of Microsoft Access reports to PDF format i.e. unattended and without annoying "Save As..." dialogs, and - more importantly - without having to use...
25
by: MLH | last post by:
In an earlier post entitled... "A97 closes down each time I open a particular report" it has been suggested that I rebuild problematic table - one in which some corruption has occurred. I...
5
by: Laurent Allardin | last post by:
Hi, Why this code compile??? We should not be able to Override the code by using the Overloads since the sub as exactly the same parameters.... Thank you. Laurent Allardin,MCSD,MCAD
1
by: Brett | last post by:
I'm trying to save a webpage in the IE object (SHDocVw) via save as "web page complete". Using this code: Me.IE_Inst.ExecWB(SHDocVw.OLECMDID.OLECMDID_SAVEAS,...
3
by: steverossiter | last post by:
Hi, This is pretty simple stuff but if anyone can point a novice in the right direction it would be appreciated. I have a bunch of URL's that point to files on the internet whose download I...
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
5
by: NarayanaR | last post by:
Hello, I'm new to Office(!) but not to programming. I have a requirement that I'm struggling to solve: 1. In Access, I import a List from a sharepoint site as a linked table. 2. I delete all...
3
by: mariner92689 | last post by:
Hi all, I am very poor at scripting. My goal is to automate a process that I often have to stand by the computer and wait for each step to finish in order for me to manually proceed to the next...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.