Results 1 to 8 of 8
  1. #1
    milton837 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    8

    Text boxes filled with black when focused


    Hello.
    new to working wuth access.
    i am trying to build an inventory to a friend.

    i am building a login form which contains two text box. when i focus one of them, the text box is filled with black (and i can't see what im typing in that text box)

    when i focus the second textbox, it acts the same.

    i have other forms in my access project and the problem only happens on this form.

    anyone know how to fix this?

    pictures:
    https://imgur.com/a/jt3yEeC (when i focus the first textbox).
    https://imgur.com/a/1HAPrtG (when i focus the second textbox)

    Thanks for your help!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    Do you have any code that runs when either textbox gets the focus

    Edit:
    Also, check if you have conditional formatting set on the text boxes
    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
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi

    Looks like you have inadvertently set the fill colour to Black vice Transparent

  4. #4
    milton837 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    8
    Quote Originally Posted by Bob Fitz View Post
    Do you have any code that runs when either textbox gets the focus

    Edit:
    Also, check if you have conditional formatting set on the text boxes
    no, neither is true.

    Quote Originally Posted by mike60smart View Post
    Hi

    Looks like you have inadvertently set the fill colour to Black vice Transparent
    didn't understand. can u explain diffrently?

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi

    If you open your Form in Design View and select the Control.

    Then RightClick and select Properties.

    Then select the Format Tab and note that Back Colour Property should be set to Background 1



    You have probably got it set to Text 1


    Attached Thumbnails Attached Thumbnails Design.PNG   Design 2.PNG  

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Okay, this can happen if BackStyle is set to Transparent and BackColor is set to same or nearly same color as ForeColor.
    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.

  7. #7
    milton837 is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    8
    Quote Originally Posted by mike60smart View Post
    Hi

    If you open your Form in Design View and select the Control.

    Then RightClick and select Properties.

    Then select the Format Tab and note that Back Colour Property should be set to Background 1



    You have probably got it set to Text 1


    yes. that was the problem.

    thanks ! sloved it

    Quote Originally Posted by June7 View Post
    Okay, this can happen if BackStyle is set to Transparent and BackColor is set to same or nearly same color as ForeColor.
    thanks, but the sultion above sloved the issue.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I am sure it did but now you know why that behavior occurred. If BackStyle had been set to Normal, both textboxes would have been black even when did not have focus.
    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.

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

Similar Threads

  1. Blank text box on report to be filled in
    By Charles CL in forum Reports
    Replies: 7
    Last Post: 12-23-2015, 04:21 AM
  2. Replies: 3
    Last Post: 10-15-2012, 01:25 PM
  3. Replies: 1
    Last Post: 03-29-2012, 12:20 AM
  4. Report printing black boxes
    By stephenaa5 in forum Reports
    Replies: 1
    Last Post: 05-11-2011, 04:53 PM
  5. Replies: 1
    Last Post: 07-30-2009, 12:54 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