Solved

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

Posted on 2004-10-11
3
200 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
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 69

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now