A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

workorder from database



 
 
Thread Tools Display Modes
  #1  
Old January 26th, 2008, 04:04 AM posted to microsoft.public.access.tablesdbdesign
Chip Smith
external usenet poster
 
Posts: 11
Default workorder from database

i would like to make a database that could hold information like a customers
name, address, phone, etc. then within the database either by button or thru
word, have it dump that information into a workorder or purchase order
template i've already made. and then after the workorder had been created and
saved, have that file associated with that customer in the database either in
a new field or by clicking on the customer and bringing up all the associated
documents
--
--Chip Smith--

  #2  
Old January 28th, 2008, 06:21 PM posted to microsoft.public.access.tablesdbdesign
Pat Hartman
external usenet poster
 
Posts: 392
Default workorder from database

This is going to take some VBA. First you need to modify your template to
add form fields that will be filled with appropriate data. Make sure you
name the bookmarks with understandable names. Then in your Access
application, you automate Word and fill the bookmarks with data from a query
that selected the record you want to fill. If you have a section where you
have multiple line items, that will need to be defined in the Word document
with a plain bookmark rather than a form field. In the Access app, you
would gather together the data in a code loop separating the columns with
tab characters and the rows with carriage return, line feed characters.
When the data is assembled, you place it at the bookmark and while it is
still selected, you convert the selected text to a table. You can use the
table formatting features to add lines and header formatting if necessary.

If you don't have an items section of the workorder, you can just do a
simple mail merge which is significantly less work.

"Chip Smith" wrote in message
...
i would like to make a database that could hold information like a
customers
name, address, phone, etc. then within the database either by button or
thru
word, have it dump that information into a workorder or purchase order
template i've already made. and then after the workorder had been created
and
saved, have that file associated with that customer in the database either
in
a new field or by clicking on the customer and bringing up all the
associated
documents
--
--Chip Smith--



  #3  
Old January 29th, 2008, 09:01 AM posted to microsoft.public.access.tablesdbdesign
Jamie Collins
external usenet poster
 
Posts: 1,705
Default workorder from database

On Jan 28, 6:21 pm, "Pat Hartman" please no wrote:
in your Access
application, you automate Word and fill the bookmarks with data


Perhaps worth considering Word's mail merge functionality i.e. pull
the data rather than push.

Jamie.

--

  #4  
Old January 29th, 2008, 01:59 PM posted to microsoft.public.access.tablesdbdesign
Pat Hartman
external usenet poster
 
Posts: 392
Default workorder from database

I didn't suggest that because the "pulling" functionality is quite limited.
For a purchase order you normally need two sets of data - the PO header and
the PO detail. Word's mail merge cannot handle this. Each document is
merged with a single record.

"Jamie Collins" wrote in message
...
On Jan 28, 6:21 pm, "Pat Hartman" please no wrote:
in your Access
application, you automate Word and fill the bookmarks with data


Perhaps worth considering Word's mail merge functionality i.e. pull
the data rather than push.

Jamie.

--



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.