Results 1 to 4 of 4
  1. #1
    lostblue7w is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    2

    Letter Database: How to manage predefined text in a report.

    I'm seeking assistance in the design of a fairly basic database.



    This database will be used to produce on-demand letters to clients at the time of service. The letters are to be customizeable with predefined text to cover a range of scenarios.

    Tables:

    Transaction: Who, What, When, and Where, lookup field to the emloyee table, rejection reasons?
    Employee: Employee names
    Rejection Reason: a table with the predefined text to cover a range of situations. The primary key is something like this: A: Insufficient Payment. And the full text of this rejection reason is a memo field as the full explanation may exceed the max # of characters for a text data type field.


    My biggest problem at the moment is the relationship between the rejection reason table and the transaction table. I understand it truly is a many to many relationship as any one transaction can have more than one reason for a rejection, and any one rejection reason will have multiple transactions.

    I'm not a big fan of join tables, so I would normally opt for a multi value lookup field in the transaction table. The problem with this choice is that when a transaction has more than one rejection reason, the text for the memo fields run together in a long strong of text on the report. I'm wanting a way to select the rejection reasons on a form for the transaction, and the corresponding rejection reasons to appear on the report in blocks of text or paragraph form. They text needs to be self-contained not running together.


    Any suggestions would be great on the design of this database.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    With the join table, each reason would naturally be separated like you describe, since each would be a record.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    lostblue7w is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2013
    Posts
    2
    I've come up with a workaround. I've created a individual table for each reason. It will make the form rather large, but I will avoid all the text running together on the report/letter.

    I can't ever get join tables to behave the way they should.

    Please feel free to point out problems with this workaround.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I probably don't need to point the problems out; you'll run into them soon enough.

    The simple event of having a new reason will cause you to basically redesign the database (new table, modify forms and reports, etc)? Personally, I'd learn how to use properly normalized join tables, but it's your baby.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Law Firm Database - How to manage people and cases
    By Mersad in forum Database Design
    Replies: 28
    Last Post: 08-06-2015, 06:15 PM
  2. VBA to update to predefined text where is null
    By webisti in forum Programming
    Replies: 1
    Last Post: 12-05-2012, 02:13 PM
  3. Replies: 4
    Last Post: 09-18-2012, 05:07 AM
  4. Replies: 6
    Last Post: 06-26-2011, 03:13 PM
  5. From letter from a report
    By LANCE in forum Reports
    Replies: 4
    Last Post: 07-04-2009, 09:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums