473,609 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Script Host: You can't carry out this action at the present time (800A09B6)

1 New Member
Need to run a query @ QoS.mdb and Compact & Repair

I'm using following script: getting error as "Title of the Question". OS: Windows Server 2003 MS Office: 2007

Expand|Select|Wrap|Line Numbers
  1. Set objAccess = CreateObject("Access.Application")
  2.  
  3. ' Open database in Microsoft Access window.
  4. objAccess.OpenCurrentDatabase "C:\Automation\QoS.mdb"
  5.  
  6. objAccess.DoCmd.OpenQuery "delete_query"
  7. 'objAccess.DoCmd.RunSavedImportExport "Import-Comcast"
  8. 'objAccess.DoCmd.RunSavedImportExport "Import-Sprint"
  9.  
  10. 'objAccess.DoCmd.RunSavedImportExport "Export-Abovenet"
  11. 'objAccess.DoCmd.RunSavedImportExport "Export-Abovenet(8-5)"
  12. 'objAccess.DoCmd.RunSavedImportExport "Export-Comcast"
  13. 'objAccess.DoCmd.RunSavedImportExport "Export-Comcast(8-5)"
  14. 'objAccess.DoCmd.RunSavedImportExport "Export-Sprint"
  15. 'objAccess.DoCmd.RunSavedImportExport "Export-Sprint(8-5)"
  16.  
  17. objAccess.CloseCurrentDatabase
  18. ObjAccess.Quit
  19. 'Access.Application.Quit
  20. Set ObjAccess = Nothing
  21.  
  22. REM Set WshShell = WScript.CreateObject("WScript.Shell") 
  23. REM WshShell.Exec ""C:\Program Files\Microsoft Office\Office12\msaccess.exe" "C:\Official works\NQP\Daily BSC Performance Report\Daily BSC Performance Report.mdb" /compact"
  24.  
  25. REM Set objShell = WScript.CreateObject("WScript.Shell")
  26. REM objShell.Run("compact.bat")
  27.  
  28. Set objShell = WScript.CreateObject("WScript.Shell")
  29. objShell.Run("%comspec% /K compact.bat"), 1, True
  30.  
  31. REM MsgBox("delete and compacting done")
Attached Images
File Type: jpg Error2.jpg (13.9 KB, 95 views)
File Type: jpg Error3.jpg (14.4 KB, 104 views)
Dec 27 '14 #1
0 1143

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4672
by: kma | last post by:
I am designing an Access 2000 database on a computer running Windows 98. I have one form with several tabs; all of which have sub forms, some with a subform on a subform. For example, on my main Job form I have a tab for PO's to keep track of all purchase orders pertaining to a specific job. The first subform is for the PO numbers related to the jobs on the main form and the next subform is for all of the PO lines for each PO. ...
2
2989
by: Paul Malcomson | last post by:
Hi. I'm having terrible trouble with a form that displays several parent/child relationships at one time. It is a sales force hierarchy - Sales force, district, territory, sales rep are the tables linked in parent/child relationships. I'm using a form to choose the main-parent and then several subforms in datasheet view.
1
8126
by: G$ | last post by:
I'm trying to write some C# code to call the Windows Scripting Host (WSH) to create shortcuts, but I'm having problems. First, I referenced Windows Script Host Object Model. Then, I wrote the code: IWshRuntimeLibrary.WshShell shell = new IWshRuntimeLibrary.WshShell(); // Neither one of the next two lines work string sAllUsersDesktop = shell.SpecialFolders.Item("AllUsersDesktop").ToString();
0
3983
by: Stealth3si | last post by:
I hope this is the right thread /forum to place this topic in. I'm trying to execute a .vbs file (double-click) on Windows 2000 Advanced Server with Service Pack 4 (on administrator account) and it gives me this startup error: Here is the entire contents (code) of the .vbs file when viewed via Notepad: (line by line)
1
4748
by: Osoccer | last post by:
...to a different folder and in the relocated file concatenates all of the lines in one long string with a space between each line element. Here is a fuller statement of the problem: I need a Visual Basic Script file, call it "Move and Reformat Text File.VBS," that will run from a Windows Script Host command-prompt-based version as follows: C:\> Cscript.exe "Move and Reformat Text File.VBS" The objective of the VBScript file, "Move...
3
18121
FishVal
by: FishVal | last post by:
Windows Script Host Object library. Full name: Windows Script Host Object Model LibName: IWshRuntimeScripting Location: ...\WINDOWS\system32\wshom.ocx The present tip is closely related to the previous stuff written by ADezii concerning Scripting Runtime library. Both libraries share the same functionality as for file functions but the library in the topic provides additional possibilities which may be advantageously used. Here is a...
1
1168
by: =?Utf-8?B?RHVzdGlu?= | last post by:
When I run a .vbs file using cscript command in the command prompt I get the following message: Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Is there a way to suppress this message? Thanks, Dustin
2
12722
by: LayneMitch via WebmasterKB.com | last post by:
Hello. I posted this earlier with the full code of the JavaScript file I'm trying to open. I'm posting this again, because the file is not the problem. I seem to be having a 'windows' problem w/ Window Script Host. While this is more of a computer support based problem, I was hoping that someone had any knowledge on how to resolve this situation. The error message I'm getting is:
1
2119
by: kmeistrmuffinmang | last post by:
Hi am new to script with WSH. Can anybody help fin out how to connect to a PostgreSQL database using WSH? Thank you, Kmeistrmuffinmang
1
4401
by: Peter Duckberg | last post by:
Hi all, I have used the following code in the past under Windows Xp without issue to run a series of configuration files based on the IP range. However, I get the above error message on Line 79 Char 7 (the Split command) under Windows 7 64-bit. I'm stumped, any ideas? Option Explicit Dim IP_Address : IP_Address = GetIP() IP_Address = ip2num(IP_Address) If IP_Address = "0.0.0.0" OR IP_Address = "" Then
0
8136
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8574
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8551
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8226
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8407
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7017
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5521
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4027
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.