March 25, 200619 yr 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. }:(
March 25, 200619 yr 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.
March 25, 200619 yr 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.
March 25, 200619 yr Author 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.
April 5, 200619 yr 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.
Create an account or sign in to comment