Results 1 to 8 of 8
  1. #1
    shenix2005 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    8

    printing multi records


    i have 4 tables(tb1,tb2,tb3,tb4) all contains data parts of certificates.tb1&tb4 are common for all certificates but tb2&3 are optional according to the input data.
    all these tables are related by feild "cert no." a record of cert no. say 100, will be having its corresponding record in tb4 & either in tb2 or in tb3.(these all tables also have feild "cert no.")
    i have a common report to print the data from all these tables.i designed a form with 2 text box and a command button for print command.
    if i enter cert no. say 100 in 1st box and 200 in other when i click button it should print all the 100 records with all the corresponding feild data from all tables where cert no. starts from 100 up to 200,
    how is this possible?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Can you create a query that returns the records you want?

  3. #3
    shenix2005 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    8
    Yes i can create the quiery but how to link that quiery to the required records which i will enter into the list boxes? i think i have to use some codes in the "crieteria" of Quiery, What is that?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Your first post said nothing about ListBoxes. I'm a bit confused now.

  5. #5
    shenix2005 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    8
    Sorry, I just made a mistake, I mean "text boxes".

    I have done one thing i made a query which will return all the records from all the tables that i require to print, Then i think i have to put a code in the command button to filter those records what i required according to the values in the text box. I want to print each record of the result in different pages.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Printing can be addressed *after* you get a RecordSet that contains the data you need. The query builder can help you get a RecordSet that uses an open form as criteria.

  7. #7
    shenix2005 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    8
    That's fine I will design that query, Is it possible to run both this query and printing by a single command button? (both in the onclick event) what code should i use?
    I think i can print on multiple pages by "forcing new page" ON.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    The simple answer to your question is YES. 1st get the Recordset you need in a query. Then you create a Report using that query and the Recordset for the Report.

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

Similar Threads

  1. Multi Prgarm Need to use the same DB
    By the_others in forum Access
    Replies: 2
    Last Post: 07-04-2010, 12:44 AM
  2. multi prgrams need to use same DB
    By the_others in forum Queries
    Replies: 0
    Last Post: 07-02-2010, 03:25 AM
  3. How to Query a Multi Value Combo Box
    By Viperpurple in forum Queries
    Replies: 0
    Last Post: 03-22-2010, 07:33 AM
  4. Printing reports and cycling through records
    By dabman in forum Programming
    Replies: 4
    Last Post: 12-15-2009, 11:45 PM
  5. Best way of displaying and printing records?
    By Orabidoo in forum Access
    Replies: 1
    Last Post: 05-11-2009, 10:05 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