473,586 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Run Macros without MS ACCESS loaded

Reg
At present I'm running a number of macros with a schedular on my
computer to update and maintain databases within our network. All my
backends contain the tables that the macros update. But all the
backends are on servers that do not have access loaded on them. I
don't think it's possible to activate these macros from the servers
schedular without access being present. Is this true?

Thanks

Reg
Nov 13 '05 #1
6 2797
Yes, it is true. You can't fire up Access and run a macro unless Access
is installed ;)

Reg wrote:
At present I'm running a number of macros with a schedular on my
computer to update and maintain databases within our network. All my
backends contain the tables that the macros update. But all the
backends are on servers that do not have access loaded on them. I
don't think it's possible to activate these macros from the servers
schedular without access being present. Is this true?

Thanks

Reg


--
--------------------------------------
Chris Moore
cdmwebs [at] no_spam_hotmail [dot] com
http://cdmwebs.com
Nov 13 '05 #2
On 14 Jul 2004 20:22:33 -0700, re**********@go v.ab.ca (Reg) wrote:

You need at least the runtime version installed.
-Tom.

At present I'm running a number of macros with a schedular on my
computer to update and maintain databases within our network. All my
backends contain the tables that the macros update. But all the
backends are on servers that do not have access loaded on them. I
don't think it's possible to activate these macros from the servers
schedular without access being present. Is this true?

Thanks

Reg


Nov 13 '05 #3
Ray
re**********@go v.ab.ca (Reg) wrote in message news:<9e******* *************** ****@posting.go ogle.com>...
At present I'm running a number of macros with a schedular on my
computer to update and maintain databases within our network. All my
backends contain the tables that the macros update. But all the
backends are on servers that do not have access loaded on them. I
don't think it's possible to activate these macros from the servers
schedular without access being present. Is this true?

Thanks

Reg


Hello Reg,

Seems to me all you need to do is make an .mdb file for every mdb
on the servers in one folder and link the tables from the servers to
the new mdb file and then run your macros in relation to the new
mdb files. This way you don't have to worry about Access not being
loaded on each of the servers.

Regards,

Ray
Nov 13 '05 #4
Hi Reg,

I think that this could be done from any one of the workstations that has
Access installed, if I understand this correctly.
(I'm thinking that it doesn't matter HOW the data gets updated, as long as
it DOES get updated.)

1.) Use the Window Task Scheduler (on the workstation) to start up a totally
seperate, new, Access .MDB file.
2.) This MDB is specifically designed, and it's sole purpose is, to update
the tables in the backend database(s)
3.) It contains an Autoexec macro / code that updates the tables that are
stored in the backend, using the UNC file path to the backend with the
Linked Table Manager. This MDB should do it's thing, and then use
Application.Qui t to close itself when finished.
4.) I'd also consider using a DOS batch file that first uses Jetcomp (the
latest version accepts command-line parameters) to back up and compact these
files, then opens the MDB file above to do the updates.
5.) Use a .PIF file to run the .BAT file, which will allow you to use a
"Close on Exit" on the DOS window, making the whole sequence transparent to
the person who de-activates the screensaver in the morning. (Avoids the
"What the heck is this?" factor. )

All of the above is theoretical, and is also something that I am considering
for my own use.

Comments, anyone?

Don

"Reg" <re**********@g ov.ab.ca> wrote in message
news:9e******** *************** ***@posting.goo gle.com...
At present I'm running a number of macros with a schedular on my
computer to update and maintain databases within our network. All my
backends contain the tables that the macros update. But all the
backends are on servers that do not have access loaded on them. I
don't think it's possible to activate these macros from the servers
schedular without access being present. Is this true?

Thanks

Reg

Nov 13 '05 #5
Well, theoretically the server scheduler could fire up a
remote instance of Access (installed on a workstation
somewhere) People have done that kind of thing for backup
and update. But firing up a remote instance of Access
would be a big ask: I don't think I've met anyone who
has done that before.

However, presumably the macro's just run a sequence of
update and append queries.

You don't need macro's or Access to do THAT.

What you want is VBscript, using ADO or DAO objects:

set obj = createobject("d ao.dbengine.36" )
....
db.Execute "select * from tbla into tblb ...."
....

(david)

"Reg" <re**********@g ov.ab.ca> wrote in message
news:9e******** *************** ***@posting.goo gle.com...
At present I'm running a number of macros with a schedular on my
computer to update and maintain databases within our network. All my
backends contain the tables that the macros update. But all the
backends are on servers that do not have access loaded on them. I
don't think it's possible to activate these macros from the servers
schedular without access being present. Is this true?

Thanks

Reg

Nov 13 '05 #6
David,

You have my interest!!

Where do I enter VBScript?
How do I execute it?
In your example code, is there anything needed preceding the Set Obj line?

Thanks for any help!

Mark
"david epsom dot com dot au" <david@epsomdot comdotau> wrote in message
news:40******** *************** @news.syd.swift dsl.com.au...
Well, theoretically the server scheduler could fire up a
remote instance of Access (installed on a workstation
somewhere) People have done that kind of thing for backup
and update. But firing up a remote instance of Access
would be a big ask: I don't think I've met anyone who
has done that before.

However, presumably the macro's just run a sequence of
update and append queries.

You don't need macro's or Access to do THAT.

What you want is VBscript, using ADO or DAO objects:

set obj = createobject("d ao.dbengine.36" )
...
db.Execute "select * from tbla into tblb ...."
...

(david)

"Reg" <re**********@g ov.ab.ca> wrote in message
news:9e******** *************** ***@posting.goo gle.com...
At present I'm running a number of macros with a schedular on my
computer to update and maintain databases within our network. All my
backends contain the tables that the macros update. But all the
backends are on servers that do not have access loaded on them. I
don't think it's possible to activate these macros from the servers
schedular without access being present. Is this true?

Thanks

Reg


Nov 13 '05 #7

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

Similar topics

3
2047
by: Peter Stalder | last post by:
I want to alter a menu bar based on user's actions. My menu bar is established using macros. Is there any way to edit the menu bar macro using Visual Basic, so that the menu name will change. I only want to change the menu macro name and not the condition or the action. Thanks, Peter
2
1653
by: ccogan | last post by:
After installing Visual Studio Express at home out of curiosity, macro execution in Visual Studio 2005 Professional has been disabled. Uninstalling Visual Studio Express didn't help. Re-installing Visual Studio Professional didn't help. Can't find a configuration setting for turning macro execution back on. Couldn't find likely suspect in...
2
1914
by: Arto Viitanen | last post by:
Would it be possible to use C# 3.0 runtime macros to do following: If Apache's log4net is loaded, calls like log.DebugFormat("Hello {0}","world"); generate the logging, but if the dll is not loaded, nothing happens? (I like to make program so, that the if the dll is missing, it works but without the logging)
20
2186
by: timmg | last post by:
You know, I've had so much fun reading the thread on lookup field's subservience to the Dark One that I thought I'd provoke another, ah, polite discussion on the topic of Macros. I've always been of the opinion that the only reason Access even has macros is that when MS bought the application back in '92 (prior to that "Access" was MS's...
0
7912
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8202
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8216
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.