Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6850 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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. }:(

Posted

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.

Posted

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.

Posted

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.

  • 2 weeks later...
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.