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

Using RunApp macro to open a mapinfo table

Hi all, i'm not very well versed with Access at all (more of a script kiddie when it comes to macros and commands) and so far, i'm able to use the runapp command to open the actual mapinfo program, but additionally, I'd like the command to open up a table and/ or workspace as well.

I've fiddled around with the VB editor and this works:

stAppName = "C:\Program Files\MapInfo\Professional\MAPINFOW.EXE"

So far so good.

Now the workspace I want to open is actually in a completely different directory - "V:\Arterial Routes\ARMaps\North.wor"

How do I go about linking or combining these two so that they open with only one click of the command button?

Cheers in advance,
Marty
Nov 2 '06 #1
3 5936
Tanis
143 100+
You can use the Shell command to open another application.

Dim stAppName As String

stAppName = "PathToApplication " & "PathnameOfFile"

Call Shell(stAppName, 1)

This is VBA, I would try to avoid macros if at all possible.
Nov 3 '06 #2
PEB
1,418 Expert 1GB
This you can put it into on click event of your wanted bouton..

Shell is available also as function
Dim i
i=shell(Pathname,1)

:)
Nov 4 '06 #3
Ah, my mistake, it is VB i'm using (see? Pure script kiddie!) but I got it sorted. Cheers for the help guys.
Nov 6 '06 #4

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

Similar topics

3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
4
by: John Baker | last post by:
Hi: I am attempting to set up a process in Access that calls a spreadsheet, executed the macro in the spreadsheet, and then returns control to the next line of the macro in Access. I am not...
4
by: Larry Rekow | last post by:
Using Access 2000, I have a linked table using specification named "Test Link Specification" When attempting to create data adapter in VS.Net, it first complains that it cannot retrieve the...
1
by: Chasing Gates | last post by:
I have created a database that brings in a new table weekly. I then made a separate query for each sales rep and a separate report for each rep. (The reports are all identical but call different...
1
by: meganrobertson22 | last post by:
Hi Everyone- I am trying to use a simple macro to set the value of a combo box on a form, and I can't get it to work. I have a macro with 2 actions: OpenForm and SetValue. I can open my form,...
3
by: bwhite | last post by:
I have a temp table with one row of data that I need to export into Excel. I created the export to create the xls file as follows ... Dim FileName FileName = !! DoCmd.SetWarnings False...
6
by: Takeadoe | last post by:
Dear NG, Can someone assist me with writing the little code that is needed to run an update table query each time the database is opened? From what I've been able to glean from this group, the...
0
by: jan.loucka | last post by:
We're running Windows Forms application written in .NET 2.0 (c#). The application is single threaded app - it starts without any form (Application.run()). After that we start another application...
6
by: Robertjb1 | last post by:
I've run into this issue and it started last week. I maintain numerous databases that use the RunApp action and have had no problems in the past. I currently have five databases that have a button on...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.