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

Open a different Word doc for each record?

here is what i want to do:
i have a database that has records of properties i list to sell and
then eventually sell. I have a Word document with pictures embedded
into it for each property. What i want to do is be able to, within the
input form i've created, click a button and have the Word document for
that property open up. Each record is different (probably close to
1100 records so far) and each has its own Word document. How would i
program the button?

Also, i read another topic in this group and he said to create another
table with a link to the main table (via the key "account #") that has
the drive, directory, and filename fields that are then used to feed
into the VB programming of the button. I tried it and no dice :-(

Please help! and thanks in advance

Ryan

Nov 13 '05 #1
2 1620
On 29 Sep 2005 20:41:02 -0700, fi*****@gmail.com wrote:

Well, you could have a strict naming convention, such as
<property_id>.doc, or you could have an additional field in the table
to hold the word doc filename.
You open the document using the ShellExecute API. Here is a link:
http://www.mvps.org/access/api/api0018.htm

-Tom.

here is what i want to do:
i have a database that has records of properties i list to sell and
then eventually sell. I have a Word document with pictures embedded
into it for each property. What i want to do is be able to, within the
input form i've created, click a button and have the Word document for
that property open up. Each record is different (probably close to
1100 records so far) and each has its own Word document. How would i
program the button?

Also, i read another topic in this group and he said to create another
table with a link to the main table (via the key "account #") that has
the drive, directory, and filename fields that are then used to feed
into the VB programming of the button. I tried it and no dice :-(

Please help! and thanks in advance

Ryan


Nov 13 '05 #2
If you don't want the overhead of maintining a list of the doc files
and their paths, you could search for OpenFileName here in CDMA and
use one of its many manifestations to browse the folder where the doc
files are. This function returns the path of any file selected, and
Application.FollowHyperLink Path opens the file.

When you can't play something because you have no dice, sometimes it's
a good answer to describe the circumstances so that others might
suggest why the dice seem to have disappeared.

Nov 13 '05 #3

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

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
55
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's...
1
by: edself | last post by:
I have a form which displays a subform datasheet of information. I'd like to be able to quickly click on a particular record and open up another form showing more detailed information about that...
3
by: N. Graves | last post by:
Hello, I'm having trouble with a feature that I would like to add to my database. I would like to have the ability to double click a record on a Sub form and that action would open that...
1
by: Justin Koivisto | last post by:
I am trying to create a report that displays a name of an advertising source and count of the number of times it was hit between certain date ranges. The data is split between two different...
1
by: Richard | last post by:
Thats a mouthfull of a title what I'm after should be really simple. I have a form with a subform which itself has a subform the final subform contains an individuals record. The individuals...
0
by: Steve Chatham | last post by:
I am stuck on this. It ought to be a simple reason as to why this is problematic, in that it works on smaller groups of data (say under 40 records), but doesn't on larger groups of records (40+)....
2
by: jj | last post by:
Hi ng I have a table called tbl_dokumentation which has two fields: Docname, And DocID The Docname is an ole-object field. I have stored three word documents in the table. Now I wan't to Open...
1
by: beemomo | last post by:
Hi everyone and anyone, i have a form in Access named "Invoice" which store information for each particular invoice. After filling in the particular detail of an invoice, I want to click on a button...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...

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.