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

Hyperlink to Word Templates

Where I work we have Thousands of Word Templates that when opened loads
data form a SQL Server database. Because we have so many templates I
created a access database so we can easly search though them.

Everything works fine except a hyperlink to the Word Templates and the
hyperlink opens the template but not in the desired maner, it opens it
to be edited and not a new document that runs agains the Sql server. Is
there a way to hperlink to the word templates or do I have to pass
vairables to word so word open up the templates.

Thanks.

Nov 13 '05 #1
2 4568
Rog
You won't be able to do that with a hyperlink since that way you open
the template instead of creating a new document based on the template.
Check out Dev Ashish's solution here:
http://www.mvps.org/access/modules/mdl0043.htm

Nov 13 '05 #2
Russell the Muscle wrote:
Where I work we have Thousands of Word Templates that when opened loads
data form a SQL Server database. Because we have so many templates I
created a access database so we can easly search though them.

Everything works fine except a hyperlink to the Word Templates and the
hyperlink opens the template but not in the desired maner, it opens it
to be edited and not a new document that runs agains the Sql server. Is
there a way to hperlink to the word templates or do I have to pass
vairables to word so word open up the templates.


Don't use hyperlinks, they're bad. They're hard coded to do unexpected
things, e.g. web addresses don't open in your default browser, they open
in IE whether you like it or not.

Use ShellExecute API (http://www.mvps.org/access/api/api0018.htm) to
open the template on click or whatever and you'll need to modify that
code (sorry, only version I could find ATM) so you can pass in the
second parameter as the shell action, in this case "New" and not the
default "Open" although in the case of shelling out to a .dot file, it
may just use the default action for .dot ("new").

--
[Oo=w=oO]

Nov 13 '05 #3

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

Similar topics

5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
0
by: MJBAccess | last post by:
I'm trying to use a command button to print a Word document that is in a Hyperlink field. I keep getting Run-Time Error 5273 and it says the document name or path is not valid. The Hyperlink...
3
by: hermawih | last post by:
Please help . I want to load the contents of another rtf document by double-clicking the words . Chapter1.rtf Chapter2.rtf Chapter3.rtf ....
6
by: sck10 | last post by:
Hello, Can you control the window attributes (toolbar, scrollbars, left and right exc.) when using the hyperlink control as you would when using javascript? For examle, I am using the...
3
by: sloesch | last post by:
I am working with VS.net 2003, framework 1.1, developing with VB.net, and ASP.net, and I would like to know how you can create a dynamic hyperlink on the fly to a document stored in a SQL database?...
2
by: SAL | last post by:
I would like to create a VB.net function, that builds a dynamic hyperlink using System.Web.UI.WebControls.HyperLink, but I can not find any examples on how to generate a dynamic hyperlink. Has...
5
by: jpr | last post by:
Hello, I have a form with a cbo which get's its data from a table. This combo returns names of MS Word files in the following path: C:\shares\files\*.dot I would like to open these files...
12
by: Dixie | last post by:
Is there a way to shell to Microsoft Word from Access and load a specific template - using VBA? dixie
1
by: jwolfley | last post by:
I have a simple table named "Profile" that includes a field called . The field is set as a text data type. The records in the field are basic website addresess like...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.