Results 1 to 4 of 4
  1. #1
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63

    Need a Glowing Text box

    Hello,



    I was wondering if it is possible to create a pulsing/ glowing affect on a text box that you would like to draw attention to. For example, I would like the user to fill out the "Highlighted/ Glowing" text box.

    Any help would be appreciated.

    Thanks


    Linda

    Click image for larger version. 

Name:	Glow.JPG 
Views:	19 
Size:	21.7 KB 
ID:	11579

  2. #2
    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
    'Pulsing/Flashing' on Forms is generally not done because it needlessly uses resources and it can trigger seizures in susceptible users! Not cool!

    I'm assuming you only want to so this while the Control is empty, otherwise you could simply set its BackColor to whatever you want, in Design View. Drawing attention to a Control, when it's unpopulated, can simply done by changing the BackColor of the target Control, using Conditional Formatting:

    In Form Design View:

    • Right-Click the Target Control
    • Click on Conditional Formatting
    • Under Condition 1 select Expression Is from the dropdown box
    • In the condition box, to the right, enter Nz(TextboxName],"")="", replacing TextboxName with the actual name, and including the Square Brackets
    • Select the formatting you desire using the BackColor (the paint bucket) icon
    • Click on OK


    Linq ;0)>

  3. #3
    LindaRuble is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    63
    Hello Linq,

    Thank you for your reply.

    When I suggested Pulsing/Flashing all I wanted was a gentil glow (by using transparency maybe?) and to pulse just a couple times and then stop and stay a light yellow color for the text box background.

    I did not mean to be uncool and cause seizures!

    Anyway, if there is a way to do this please let me know.

    Thanks

    Linda


    Quote Originally Posted by Missinglinq View Post
    'Pulsing/Flashing' on Forms is generally not done because it needlessly uses resources and it can trigger seizures in susceptible users! Not cool!

    I'm assuming you only want to so this while the Control is empty, otherwise you could simply set its BackColor to whatever you want, in Design View. Drawing attention to a Control, when it's unpopulated, can simply done by changing the BackColor of the target Control, using Conditional Formatting:

    In Form Design View:

    • Right-Click the Target Control
    • Click on Conditional Formatting
    • Under Condition 1 select Expression Is from the dropdown box
    • In the condition box, to the right, enter Nz(TextboxName],"")="", replacing TextboxName with the actual name, and including the Square Brackets
    • Select the formatting you desire using the BackColor (the paint bucket) icon
    • Click on OK


    Linq ;0)>

  4. #4
    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
    Still not sure what 'gentle glow' means, but this will change a the BackColor of aTextbox from White to Yellow and back, three times, when the Form first loads, then keep it White:

    Code:
    Private Sub Form_Load()
     Me.TimerInterval = 200
    End Sub

    Code:
    Private Sub Form_Timer()
    
    Static i As Integer
    
    If i > 4 Then
     Me.TimerInterval = 0
     Me.Alert.BackColor = vbWhite
     Exit Sub
    End If
    
    With Me.Alert
    'If the color is White, the color is Yellow, otherwise the color is White!
    .BackColor = (IIf(.BackColor = vbWhite, vbYellow, vbWhite))
    End With
    
    i = i + 1
    
    End Sub


    Replace Alert, in the code, with the actual name of your Textbox.

    Textboxes on the Form I tested this on had a White BackColor; if yours is different you'll have to make an adjustment to that. And, of course, you can choose something other than Yellow for the alternate Color.

    Linq ;0)>

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

Similar Threads

  1. Replies: 5
    Last Post: 04-01-2013, 11:49 AM
  2. Replies: 3
    Last Post: 02-07-2013, 09:53 PM
  3. Replies: 3
    Last Post: 12-22-2012, 05:33 PM
  4. Replies: 1
    Last Post: 05-24-2012, 04:59 AM
  5. Replies: 2
    Last Post: 03-01-2012, 12:21 PM

Tags for this Thread

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