Solved

Passing an account name and password to the Task scheduler from Access

Posted on 2004-10-11
3
204 Views
Last Modified: 2008-02-01
I am trying to set up my access program so the user can create a task from my program that shows up in the windows task scheduler.  I have been able to accomplish this using both the NetScheduleJobbAdd() function and the AT scheduler.   My problem is that I cant figure out how to pass account information (ie: account name, and password) with either.  The task I create from my program are not able to run because of this, but if I manually creat a task to run and put in account info, it runs fine.  Thank you in advance for your help, John
0
Comment
Question by:huston8481
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 20

Accepted Solution

by:
hes earned 500 total points
ID: 12290423
Only members of the Administrators local group can successfully execute the NetScheduleJobAdd function on a remote server.

Try the NetScheduleJobAddAsUser
http://www.wincron.com/trfnpcnsjaau.html
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12293225
see "Using the Task Scheduler from VB" from http://www.mvps.org/emorcillo/vb6/grl/index.shtml
0
 

Author Comment

by:huston8481
ID: 12309647
Im looking at both of these options right now, Ill let yall know how it goes.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question