Results 1 to 5 of 5
  1. #1
    jker is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Aug 2023
    Posts
    36

    Hide fields fon MS Acess 2007 Form from being printed

    I have a form and it uses a print button. When I press it, it prints all the fields on my screen.



    IS THERE ANY WAY, using an event, that I can hide/prevent certain field from appearing on the report?

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2019
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Show us the code that is used in the On Click event of the button
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    xps35's Avatar
    xps35 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jun 2022
    Location
    Schiedam, NL
    Posts
    232
    Do not print a form, make a report. That is where reports are for. You can choose which fields you want to print on the report.
    Groeten,

    Peter

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    agree - use a report, but to answer your question - review the display when option format property

  5. #5
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    In addition to the above answers I would add that if the intention is to dynamically (or conditionally) show\hide the controls (bound to fields) depending on certain values of other controls you would need to add code to the Format or Print events of the report section that contains the controls.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Hide MS Acess screen for an access application
    By charly.csh in forum Access
    Replies: 3
    Last Post: 08-02-2023, 04:04 PM
  2. Hide button on printed report
    By tylerg11 in forum Reports
    Replies: 5
    Last Post: 12-03-2012, 03:20 PM
  3. Replies: 1
    Last Post: 03-22-2012, 07:14 PM
  4. Acess 2007 & SQL question
    By willigiann in forum Forms
    Replies: 3
    Last Post: 09-15-2010, 09:54 AM
  5. Acess 2007 Validation Problem- HELP!?
    By JackLowe in forum Access
    Replies: 1
    Last Post: 04-20-2009, 12:38 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