473,769 Members | 5,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting the path of Word document in MS Access

Good day,

I created a form where one of its controls stores the hyperlink to a
Word document.

The form has a command button that opens the folder where the Word
documents are kept using a RunMacro command. What I want to do is to
get the path to the document and stored it in the control as a
hyperlink.

I am open to a better way to accomplish this, any suggestions?

Thank you.
Nov 13 '05 #1
2 1710
md******@excite .com (M. Garcia) wrote in message news:<10******* *************** ****@posting.go ogle.com>...
Good day,

I created a form where one of its controls stores the hyperlink to a
Word document.

The form has a command button that opens the folder where the Word
documents are kept using a RunMacro command. What I want to do is to
get the path to the document and stored it in the control as a
hyperlink.

I am open to a better way to accomplish this, any suggestions?

Thank you.

How about using Ken Getz's OpenFile API
http://www.mvps.org/access/api/api0001.htm

and then just write the value to a variable and then dump it into your
text field. The user will get the standard Open File dialog, which you
can filter for any file type you want.
Nov 13 '05 #2
pi********@hotm ail.com (Pieter Linden) wrote in message news:<bf******* *************** ***@posting.goo gle.com>...
md******@excite .com (M. Garcia) wrote in message news:<10******* *************** ****@posting.go ogle.com>...
Good day,

I created a form where one of its controls stores the hyperlink to a
Word document.

The form has a command button that opens the folder where the Word
documents are kept using a RunMacro command. What I want to do is to
get the path to the document and stored it in the control as a
hyperlink.

I am open to a better way to accomplish this, any suggestions?

Thank you.

How about using Ken Getz's OpenFile API
http://www.mvps.org/access/api/api0001.htm

and then just write the value to a variable and then dump it into your
text field. The user will get the standard Open File dialog, which you
can filter for any file type you want.

-------------------------------------------------------------------------------
I'm getting an error using this ahtXXX() function.
Do I need to activate a reference from the reference library? In what
part of the code I should save the path to the text field?

Thanks.
Nov 13 '05 #3

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

Similar topics

1
1422
by: Alex Stevens | last post by:
Hi All, I'm asking for opinion for the best way forward with storing the path of a network shared document in a SQL Server table. Essentially, I want to store in a part record the path to it's actual word document on my client's network. Currently, I am storing the mapped drive path when the user selects it using the OpenFileDialog object in VB.net.
1
5613
by: Josh Asbury | last post by:
Hi all - I am having troubles with implementing a CommandBar in Microsoft Word utilizing VB.net. My CommandBar appears when I start Word, but if I open an existing document, it does not appear. My best guess is that ActiveDocument isn't getting set correctly, but I really don't know how else to implement this. I am attaching an external template to avoid making any changes to Normal.dot, but my code generates the CommandBar. I have...
1
2984
by: Rick D | last post by:
I'm completely new to the concept of working with Office documents on C#, but I found this code on a different site and am using it as follows: object oMissing = System.Reflection.Missing.Value; object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */ object oPath = "path goes here"; //Start Word and create a new document. Word._Application oWord; ...
0
1507
by: ink0 | last post by:
Hello, I have a problem: in my flash there is external swf . I have movieclip (background) into library and I want to load it to the swf. mc has path: and background symbol has path: . I tried to use attachMovie & duplicateMovieClip but this way I can create element only in because I can't write a full path to element I want to crate, only it's name. How can I put into ? Please help and sorry about my English.
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.