PC Review


Reply
Thread Tools Rate Thread

can access do this?

 
 
=?Utf-8?B?cmRhdmlz?=
Guest
Posts: n/a
 
      29th Aug 2006
I have a lot of documents that go out to new employees. There are a core set
of documents that go to all employees. However, depending on what type of
employee I have, (union, non-union, CA employee, WA employee, etc . . .) they
will or won't get other documents.

Is there a way to set up an access database, enter in certain information on
the new employee, and only the documents I want associated with that type of
employee would print?

Also, if I type the employees name in can it be populated throughout all of
the documents (like a mail merge)?

Thanks in advance for your help!
 
Reply With Quote
 
 
 
 
Lemark23@yahoo.com
Guest
Posts: n/a
 
      29th Aug 2006
Access can do this, however I would recomend that you get someone who
knows their way around VBA to get it done.

Your documents will probably need to use VBA object Automation to make
your documents correctly.
You will probably need to generate the queries that define who gets
what from code.
To get this to work at the push of a button, you will probably need to
automate your mail client through code as well.

You probably have all of this information in some other database, so I
would recomend starting this project by linking Access to that
information and just processing the information in Access, not editing
the employee information.

Access is very good at this however, and VBA can do lots of great stuff
with documents and you can get this to work no matter what the email
client is.


rdavis wrote:
> I have a lot of documents that go out to new employees. There are a core set
> of documents that go to all employees. However, depending on what type of
> employee I have, (union, non-union, CA employee, WA employee, etc . . .) they
> will or won't get other documents.
>
> Is there a way to set up an access database, enter in certain information on
> the new employee, and only the documents I want associated with that type of
> employee would print?
>
> Also, if I type the employees name in can it be populated throughout all of
> the documents (like a mail merge)?
>
> Thanks in advance for your help!


 
Reply With Quote
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      29th Aug 2006

rdavis wrote:
> I have a lot of documents that go out to new employees. There are a core set
> of documents that go to all employees. However, depending on what type of
> employee I have, (union, non-union, CA employee, WA employee, etc . . .) they
> will or won't get other documents.
>
> Is there a way to set up an access database, enter in certain information on
> the new employee, and only the documents I want associated with that type of
> employee would print?
>
> Also, if I type the employees name in can it be populated throughout all of
> the documents (like a mail merge)?
>
> Thanks in advance for your help!


I don't think you really need VBA for this... (although it wouldn't
hurt!) You might want to grab Albert Kallal's WordMerge stuff from his
website, because it encapsulates a lot of this stuff for you, so you
wouldn't even have to understand how the innards worked.

not so with the queries (unless someone builds them for you).


Table structure/relationships

tblDocument(DocumentID, FriendlyName,UNCPathToFile,
CoreDoc(yes/no),...) alias D

tblEmployee(EmployeeID, Firstname..., EmployeeTypeID...) alias E

tblEmployeeTypes(EmployeeTypeID, EmployeeType) alias ET

tblMailings(DocumentID,EmployeeID,ReceiptDate) alias M

tblTypeReceivesMailing(EmployeeType,MailingType) alias TRM

for CoreDocs:

SELECT D.FriendlyName, E.EmployeeID, E.FirstName, E.LastName...
FROM Employee As E, Document As D;

this creates a cross-product (all docs times all employees), then you
can filter for which ones you want.

for types of employees receiving types of docs

SELECT D.FriendlyName, E.EmployeeID, E.FirstName, E.LastName...
FROM Employee As E, Document As D
WHERE E.Type="sometype"
AND D.DocType="SomeDocType";

Yes, I know.... there are several fields here that have bad field names
etc... It's an outline, not real code.

To answer your question:
you could create a series of tables to store the data and then query to
get the set of "who gets what document" and then send those results to
various mailmerge templates using Albert's code. Wouldn't be that
hard, I don't think. Might require a bit of code, but as for feasible?
yes. absolutely. For a total beginner, probably not.

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      30th Aug 2006
On Tue, 29 Aug 2006 14:36:01 -0700, rdavis
<(E-Mail Removed)> wrote:

>I have a lot of documents that go out to new employees. There are a core set
>of documents that go to all employees. However, depending on what type of
>employee I have, (union, non-union, CA employee, WA employee, etc . . .) they
>will or won't get other documents.
>
>Is there a way to set up an access database, enter in certain information on
>the new employee, and only the documents I want associated with that type of
>employee would print?


Certainly. You'll need (at least) five tables: Employees, Positions
(employee types), Documents, PositionDocuments (the documents required
for an employee in a particular position), and EmployeeDocuments
(which documents the employee actually received).

>Also, if I type the employees name in can it be populated throughout all of
>the documents (like a mail merge)?


Yes. You'll be able to use either Word MailMerge or VBA code to
actually open Word and print or save the document.


John W. Vinson[MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open my Access files after conversion from Access 97 to Access 2003 M Shafaat Microsoft Access 5 10th Apr 2010 09:04 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
W2K3 Service w/ UNC Access, Local Disk Access, and DB Access Rob Microsoft C# .NET 6 2nd Aug 2004 01:44 PM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database Wayne Morgan Microsoft Access 0 29th Sep 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 PM.