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

Run an ArcGIS VBScript in MS Access

HELP!

What I've got going here is:

a)Access database (mdb)
b)VBScript from ArcGIS (modelbuilder) that processes said Access
database to custom Personal GeoDatabase (PGD)

I want that Access should be able to run the VBScript internally, and
I've added the code into a module. Am I taking the wrong path? Am I
skipping a step? How do I make it work?

I'm getting an error before I even begin!

-Jim B

Jan 18 '06 #1
1 5265

<bl*****@gmail.com> wrote
HELP!

What I've got going here is:

a)Access database (mdb)
b)VBScript from ArcGIS (modelbuilder) that
processes said Access database to custom
Personal GeoDatabase (PGD)

I want that Access should be able to run the
VBScript internally, and I've added the code
into a module. Am I taking the wrong path?
Am I skipping a step? How do I make it work?


First, I want to make it clear that I am not familiar with the software
product, ArcGIS, which you mention, so some of my questions will deal with
what kind of code you have.

As Ross-for-Boss said, "The devil's in the details." And, you didn't provide
much detail. You also did not explain what the code is supposed to do, why
you want or need to execute it from inside Access, nor where that code would
normally be run.

If you are accurate in describing what you have, "vbscript" (usually all in
lowercase) is a scripting language not processed by Access, which uses
Visual Basic for Applications (VBA), a similar but not identical language.
We talk about Declarations, Functions, and Sub Procedures in VBA, but we
don't call pieces of code "VB Scripts".

You can't just "add code to a module" and expect it to run. You have to
determine the conditions under which you want it to run, and make provision
to run it... if you were not aware of that fact, then I wonder if you might
not want to learn something more about VBA code in Access, and whether that
is what you have, or if you do, indeed, have vbscript code (to use that with
Access, you'll have to set a reference to the Scripting Host library and
call that to execute it.

I don't use vbscript with Access because many system administrators very
thoroughly disable and protect against vbscript or javascript being run on
their systems, as a security measure. Many other Access developers also do
not use it, either, so if that is what you have, you may or may not find
help here.

Larry Linson
Microsoft Access MVP
Jan 18 '06 #2

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

Similar topics

2
by: Chris Fonnesbeck | last post by:
I know that AVPython was written to allow scripting in ArcView 3.*, but I am wondering if this module works in ArcGIS 8.*? I notice that the last release is quite old; has development ceased on...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
5
by: Zalek Bloom | last post by:
Hello, I am developing a simple ASP application with VBScript and Access database. I am testing it on my Win98SE machine using Personal Web Server. My machine is Celeron 2000 with 512Mb RAM. On...
4
by: korund | last post by:
Is there any difference to read & write to windows Registry with VBScript or JavaScript? Both scripting languages have similar syntax. What is preferable use for this? thanks.
2
by: Edvin | last post by:
Greetings, I'm trying to access C# COM object from a VBscript, where C# will modify the reference parameter to an array. I found simple reference parameter datatypes (i.e. int, string) yield...
0
by: subramanian2003 | last post by:
Hello All, From where I can get "Python for arcgis" tutorial. Bye, Subramanian. Sign Up for your FREE eWallet at www.wallet365.com
1
by: mjl8379 | last post by:
Is there any online resource where I can check for ArcGIS scripting? Maybe a forum? Mario
1
by: anbumozhip | last post by:
is there any code for color ramp available like the one which is present in arcview or arcgis
0
by: stutler.jil | last post by:
arcgis crack http://cracks.12w.net F R E E
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.