Results 1 to 3 of 3
  1. #1
    igiatakis is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    2

    Label printing problem

    Hi, I have the following problem.



    I need to print text labels for certain items. This text is a combination of different phrases, depending on the item. When I have a sales order I need a report to give me the item number, the quantity, and the text label that I should print. For example I have products A, B, C and D. I have two different texts: Text1:"This product contains small parts" and Text2:"This product contains batteries"

    I know that Product A needs text 1 and 2, B needs 2 only, C needs no text and D needs 1.

    The input is the sales order, Product A:100pieces, product B:0 pieces, product C 200 pieces, Product D 100 pieces.

    The output should be a table with the number of labels and the text:

    |------------------------------------
    | Qty | Text
    | ------------------------------------
    | 100 | "Product A"&" Text1"&"Text2"
    | 100 | "Product D" & "Text1"
    | ------------------------------------

    How should I build this database?

    Thank you!

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    I would recommend that you make a TextTable. One column. No key. and enter into it each text phrase. Also do not use the method of joining phrases - instead consider them each unique. Thus:
    Text1: This product contains small parts
    Text2: This product contains batteries
    Text3:This product contains small parts This product contains batteries

    In your ProductTable - have a ProductText field, and make it to be a LookUp field of the TextTable. This makes it simple to create Products.

    Then you need a TransactionTable that is where you get product quantity, orderID, etc - and it has a Product field that is a LookUp Field to the ProductTable. In this case the lookup function is only going to store the unique key ID of the product.

    Hope this helps.

  3. #3
    igiatakis is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    2
    Hi,

    Creating all possible combinations of texts is not the best solution because unlike this simple example there are so many different texts, imagine how many different combinations you may have. In addition it is much easier to update the database if somehow there a list of items and a correlation with the texts that these items require, instead of writing the complete text every time.

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

Similar Threads

  1. Problem when printing report
    By bosve73 in forum Reports
    Replies: 13
    Last Post: 08-31-2010, 11:24 PM
  2. Printing problem
    By kulanga in forum Programming
    Replies: 1
    Last Post: 04-14-2010, 06:45 AM
  3. Problem with label in Access 2007
    By Madraykin in forum Forms
    Replies: 4
    Last Post: 02-04-2010, 10:41 AM
  4. Printing problem
    By lornadobson in forum Reports
    Replies: 2
    Last Post: 09-29-2009, 05:28 AM
  5. Printing multiple copies of a mailing label
    By Flight Planner in forum Reports
    Replies: 1
    Last Post: 10-19-2006, 08:16 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