Shadowfax Posted March 25, 2006 Posted March 25, 2006 I'm trying to run an FM script from Microsoft Word VBA Code. While this is pretty easy to do if the database is local, I'm having trouble figuring out how to do this over a network. The trouble occurs at the following VB line: Set FMProDoc = FMProApp.Documents.Open(filepath, password) Basically, it opens a database using the specified filepath and password, and then stores a link to that database inside the FMProDoc object. Unfortunately, I cannot determine what filepath to provide for a database on a network. From Filemaker, I would normally go to "Open Remote", choose "Local Hosts", and pick the shared database I want from the list. Is there a filepath equivelant? Thanks in advanced. }:(
Reed Posted March 25, 2006 Posted March 25, 2006 I don't believe you can open a remote file using VB(script) activeX. The workaround is to have a local opener file that gets opened by the VB Code, and then that file opens the remote file through a Scriptmaker script.
Ted S Posted March 25, 2006 Posted March 25, 2006 I think Reed is correct. I messed around with this for a few hours one time and never got anything to work. I ended up going with the opener file method. Maybe Wim can chime in. When it comes to Windows topics, Wim is the final authority.
Shadowfax Posted March 25, 2006 Author Posted March 25, 2006 Ah, well... I understand. Having a local file opener is a good workaround, though it takes away from the whole "one shared file" simplicity. Thanks again for the responses. If anyone has further comments/suggestions, I'm still listening.
Wim Decorte Posted April 5, 2006 Posted April 5, 2006 AFAIK, can't be done. Not anymore. Used to work in FM 5 and/or 6 by just providing just the name of the file and no path, but that functionality went away in 7.
Recommended Posts
This topic is 6850 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now