Results 1 to 4 of 4
  1. #1
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389

    How to design report for invisibel some text box in print out

    I have a form which contains some text boxes. While designing the report, I have coded in the report_page that if the value in the text box named txt1 is true then its data and a special label located in the report should be shown in the print preview, otherwise not. And In the text box and label properties I have them set to invisible. This is working properly when the value of text box is false then its data and label is not shown in print view but the problem is coming that text box' value and label is visible on printout. How to solve this problem? I think there is something wrong with printing multi print (like multi invoice).


    Thank you.

  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
    Quote Originally Posted by deepaksharma View Post
    ....I have coded in the report_page .....
    Show us your code.
    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
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    in ON PRINT event:

    txt1.visible = not isnull(txt1)

  4. #4
    deepaksharma is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Jul 2023
    Location
    india
    Posts
    389
    Quote Originally Posted by Bob Fitz View Post
    Show us your code.
    Private Sub Report_Page()


    If Me.txt1.Value = True Then
    Me.Label97.Visible = True
    Me.Revise_Date.Visible = True


    End If

    in the table txt1 data field type is set to yes/no

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

Similar Threads

  1. Replies: 1
    Last Post: 07-24-2019, 07:49 AM
  2. Replies: 0
    Last Post: 07-27-2018, 02:17 PM
  3. Yes/No Field, when active print text in a report
    By crobaseball in forum Access
    Replies: 2
    Last Post: 04-09-2014, 11:08 PM
  4. Replies: 6
    Last Post: 02-02-2013, 12:44 AM
  5. Replies: 1
    Last Post: 11-25-2012, 12:44 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