Results 1 to 4 of 4
  1. #1
    aligahk06 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2010
    Posts
    94

    Printing the active record only

    Dear All,


    I've designed a form and embed a command button called print record .
    when i click the print record command button it is printing almost so many pages.I want to print only active record i.e say ( Record 2 to 2) contents only.

    Any idea to accomplish this ?

    Rgds,
    Aligahk06

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    You need to let acces know what data to print. Take the example here. I would Like to print Report tblStudent for a particular Student ID which is in TEXT13 a control on my form.

    The strCriteria seperates the Record

    Dim stDocName As String
    strCriteria = "[StudentID]=" & Me.Text13
    stDocName = "tblStudent"
    DoCmd.OpenReport stDocName, acNormal, , strCriteria

    if this solves your problem mark the thread solved

  3. #3
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    select one row then print the selection:

    Me.SelHeight = 0 ' cancel selection
    Me.SelHeight = 1 'select current row
    DoCmd.PrintOut acSelection ' print selection

  4. #4
    Join Date
    May 2010
    Posts
    339
    To Print the record in the form: http://allenbrowne.com/casu-15.html

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

Similar Threads

  1. Active X form control
    By amitsingha4u in forum Access
    Replies: 2
    Last Post: 05-18-2010, 12:21 AM
  2. Inactive or active
    By Bruzer in forum Access
    Replies: 4
    Last Post: 04-08-2010, 04:20 PM
  3. Active/Inactive Option
    By mikel in forum Database Design
    Replies: 6
    Last Post: 10-09-2009, 07:47 AM
  4. help with queries active (yes/no)
    By islandboy in forum Access
    Replies: 4
    Last Post: 09-04-2009, 12:55 PM
  5. sql server active x - HELP!!!!!!!!!!!!!!
    By Valeda in forum Access
    Replies: 0
    Last Post: 06-27-2006, 01:02 PM

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