473,404 Members | 2,195 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,404 software developers and data experts.

VBA beginner: how to run VBA code independently of Access

Hi,

I wrote this test code as part of a module I created for the Northwind
database. However, I was only using this as a test platform. My goal
was to write a program that would take records from SQL server and
import them into the outlook address book. It worked, great.
Now I'd like to run this VBA code independent of the Northwind
database. Understand that I don't have the first idea of what program
I can use to run this VBA code as a standalone module. I'd also like
the program to be able to run on its own power, on a schedule, without
me telling it to run everytime.
Any ideas?
Nov 12 '05 #1
3 4918
You must run Access' VBA from an Access database, and, for what you want to
do, that may be pretty high overhead -- but if that isn't an issue, read
ahead. You could write similar code in the separate ("classic") VB 6 product
that would have a much smaller footprint. In either case, there is a way to
have particular code run at startup. You'll need to use the Windows
scheduler, or a third-party scheduler, to initiate execution of your
application on a particular schedule.

Other products support VBA, but you wouldn't be any better off running it
from Excel, or Word, or one of the other software packages where it can run.
VBA does not have an option for a compiled, standalone execution.

Larry Linson
Microsoft Access MVP

"Dan Hicks" <da**********@hotmail.com> wrote in message
news:e4**************************@posting.google.c om...
Hi,

I wrote this test code as part of a module I created for the Northwind
database. However, I was only using this as a test platform. My goal
was to write a program that would take records from SQL server and
import them into the outlook address book. It worked, great.
Now I'd like to run this VBA code independent of the Northwind
database. Understand that I don't have the first idea of what program
I can use to run this VBA code as a standalone module. I'd also like
the program to be able to run on its own power, on a schedule, without
me telling it to run everytime.
Any ideas?

Nov 12 '05 #2
Outlook has VBA just like Access so why not run your codefrom Outlook rather
than Access. Trying to use Access just makes Access a "middleman" to your
application and makes it less efficient. There are two benefits to using
Outlook:
1. users without Access will be able to use your app;ication
2. Outlook has as part of its VBA a reminder system that you can program to
pop-up on a schedule. You can use this feature to run your program on a
schedule.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"Dan Hicks" <da**********@hotmail.com> wrote in message
news:e4**************************@posting.google.c om...
Hi,

I wrote this test code as part of a module I created for the Northwind
database. However, I was only using this as a test platform. My goal
was to write a program that would take records from SQL server and
import them into the outlook address book. It worked, great.
Now I'd like to run this VBA code independent of the Northwind
database. Understand that I don't have the first idea of what program
I can use to run this VBA code as a standalone module. I'd also like
the program to be able to run on its own power, on a schedule, without
me telling it to run everytime.
Any ideas?

Nov 12 '05 #3
And the general solution for running code without VB6 or Outlook
or Access or Excel is to use VBS (vb script).

VBA is part of office: VBS is part of Windows.

(david)
Nov 12 '05 #4

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

Similar topics

16
by: Rod Carrol | last post by:
Hello all, As a beginner I've been exeperiencing lots of errors while building my website, (I'm currently attempting to implement a member login/registration piece for my site using mySQL and...
3
by: Dan Hicks | last post by:
Hi, I wrote this test code as part of a module I created for the Northwind database. However, I was only using this as a test platform. My goal was to write a program that would take records...
1
by: Simon Matthews | last post by:
Hope someone can help an Access beginner! I've just started keeping my surgical logbook on access and it's a simple flat-file affair. I have created several queries that will list cases...
3
by: pestul | last post by:
I'm quite new with Access so please bare with me. I'm pretty sure what I'm looking for will require the integration with VB to function properly. Here's what I have: Portfolios for inviduals...
27
by: MHoffman | last post by:
I am just learning to program, and hoping someone can help me with the following: for a simple calculator, a string is entered into a text box ... how do I prevent the user from entering a text...
3
by: tomrobin | last post by:
Hi, I'm having trouble with data types. I understand that the double data type is 64-bit, which should correspond to 15 digits(?). However, it seems from running this program that it can only...
6
by: Qun Cao | last post by:
Hi Everyone, I am a beginner on cross language development. My problem at hand is to build a python interface for a C++ application built on top of a 3D game engine. The purpose of this python...
10
by: See_Red_Run | last post by:
Hi, I am trying to figure out how to get started with PHP/MySQL. Everything I've read so far says to start with PHP first. I was expecting something like Visual Basic Express or some other type...
2
by: malcster2 | last post by:
hello, i am a beginner to ajax. i have created a mysql database, which i would like to access from a web page. i have created 3 files, a html to display the data, a php file to extract the data,...
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.