473,385 Members | 1,872 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,385 software developers and data experts.

Scheduler to Automate Email Code?

I currently HAVE a form...a "Summary List" it could be called...which
is
a contineous form...AND on this form are "Four fields" from EVERY
record (each on their own line) so to seak...like a running summary of
ALL the Records in the Database!

NOW upon clicking "one" of these lines...it then opens that specific
Record in the Database...which is linked through and by a "Record ID"!
The "four fields" that are exhibited in this contineous form, and
linked by the Record ID...are":
1.Vessel Name,
2.Description,
3.Date of Issue, and;
4.Due Date!

This contineous form is powered (obviously)....by a Query (titled
QryShipsInformation)...to extract the informaiton from the database and
display it on this form! (SummaryList)

Within the Summary List or Summary form...I have created a COmmand
Button which executes a CODE that Queries the database...NOT AN ACTUAL
QUERY itself...to see if any of the DUEDATES fall within the NEXT TWO
MONTHS....if they do...then it executes an Email to ME........NOW....I
have already completed the code for the date criteria and also the
email code...and this all work...when u click the command button...all
I need help on is to somehow
Automate this Command Button to Run the Code, say for example... Once a
Week...I have
already downloaded a Scheduler...thats easy....commanded it to run the
database on a certain day and time each week...all I need to know is
how would I automate code to when the scheduler executes the
programme....the easiest option would probably be to just place on the
Form's "On Load Event" or "On
Open" event I assume.......?
Any sugesstions?
Regards
Liam.

Jun 14 '06 #1
1 1904
create a macro that runs the code you want, name it AutoExec and it
will run every time the database opens. Otherwise, use command line
arguments to do it...
From the HELP file...


To run a Visual Basic for Applications procedure when you open a
database, use the RunCode action in the AutoExec macro or in the macro
that you run by using the command-line option /x. You can also run a
Visual Basic procedure when you open a database by creating a form with
a Visual Basic procedure defined for its OnOpen event. Designate this
form as the startup form by right-clicking the Database window,
clicking Startup, and then entering that form in the Display Form/Page
box.
To specify a forward slash (/) or semicolon (;) on the command line,
type the character twice. For example, to specify the password ;mjs/md
on the command line, type ;;mjs//md following the /pwd command-line
option.

What's with all the caps? Do you think we somehow don't understand
English or something? I understand it just fine... I can even read the
help file... try it sometime.

Jun 14 '06 #2

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

Similar topics

1
by: Faiz | last post by:
We have developed an application in VB6 (say AA.exe). We wish to schedule the execution of this application (AA.exe) through Windows Task Scheduler. Is there a way through which we can add this...
19
by: Eric | last post by:
I'm trying to have some scripts run periodically on Windows XP and found the "Task Scheduler" did not execute my scripts. My scripts are of the form scriptName.py, and will run just by invoking that...
4
by: keepyourstupidspam | last post by:
Anyone know of a reliable design for a Windows C++ Task Scheduler Class. The scheduler will expose a member function that will add schedules, its parameters will be an interval to run the tasks...
4
by: Chris via AccessMonster.com | last post by:
I have the challenge of needing to automate table creation. It doesn't end there the tables have to be created from one table that looks something like this... Email ...
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...
4
by: LongBow | last post by:
Hello all, I have been working on my first embedded project which has been exciting and stressfull at the same time. My task now is to develop a good scheduler for transmitting ARINC labels....
2
by: Kevin | last post by:
Hi, I am looking for a Task Scheduler with source code that has the following features: - Must perform all of the same functions as the Windows Task Scheduler - Must be able to run COM...
2
by: yamca | last post by:
I want to write a task scheduler. But i cant make the logic between the scheduler and tasks. For example a have an external process which can add and delete tasks from scheduler. Every task has...
2
by: patrice.fiset | last post by:
Hello Everyone, I use wamp.org (windows, apache, mysql, php) to develop website in PHP5 locally, then I copy on a live webserver linux. I need to created batch job that I can schedule. I saw few...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.