Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    It's no rumor! I set up a form with 7 (+default) conditionals. I understand the limit is 50.

    Sorry shree, I don't understand description of your issue with the code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    hi June, my issue is simple if our Bal value is "0" then for that Detail should not be appear in form note if bal filed value is "0"

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    The suggested code should work. Use the name of the textbox.

    Me.textboxname.Visible = Nz(Me.textboxname) <> 0

    Unless you want to provide the project for analysis, don't know what else I can offer.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #19
    shree is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    27
    Quote Originally Posted by shree View Post
    Hi JUNE, For your VBA code i have used in on current but "me.Bal.value there is no argument for visible after . there is only value is showing

    instead of bal i took text25 its working but both detail texts are disappear even one has BNP has position (value)
    For your VBA code i have above issue

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    Already stated I don't understand the description of issue. How can 'both detail texts are disappear' when the code addresses only one control and what is 'BNP'? We are going in circles. If you want more help I will have to review project to analyse your effort.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #21
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You cannot use code for this because Form3 is a Continuous View Form! It has to be done with Conditional Formatting off of the ribbon.

    In Form Design View
    • Press and Hold down the <Shift> key
    • Click to select the two Controls to be formatted
    • On the ribbon, under Database Tools, click on Conditional Icon
    • Under Condition1, with the dropdown, select Expression Is
    • In the next box enter [BAL] = 0
    • Click on the Enable/Disable Icon (last one on the right, beyond the big A Fore Color Icon)
    • Click on OK

    You should now be set. I assume that this Form is for Display Only, as it is based on a Read-Only Query.

    Linq ;0)>

  7. #22
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    Ooops! Good point, Missinglinq. Should have caught that from the very first thread.

    Also, even in Single View, the control is still there and occupies space. Depending on arrangement of controls, could appear as a blank area between other controls.

    Regardless of form view, the conditional formatting can only disable/enable the control, it will remain visible.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 07-30-2011, 03:21 PM
  2. Continuous Form Disable Command Button
    By mbake085 in forum Programming
    Replies: 4
    Last Post: 05-27-2011, 08:55 AM
  3. Continuous forms records missing
    By KWarzala in forum Forms
    Replies: 2
    Last Post: 12-28-2010, 12:42 PM
  4. Replies: 2
    Last Post: 10-16-2009, 02:47 PM
  5. Replies: 3
    Last Post: 09-06-2008, 10:19 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