question

Elise-6836 avatar image
0 Votes"
Elise-6836 asked thedbguy answered

How to make a Text Box blink if left empty in access database?

How to make a Text Box blink if left empty in the access database?

office-access-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thedbguy avatar image
0 Votes"
thedbguy answered

Okay, try the following steps, just for testing...

  1. Create a new blank form

  2. In Design View, add a Textbox (let's assume it's name is Text0)

  3. In the Properties Window of the form, find the Timer Interval property and enter 1000 (1 sec)

  4. In the On Timer property, select [Event Procedure] from the dropdown

  5. Click on the three dots next to [Event Procedure] to open the code window

  6. Enter the following code:

    If Me.Text0.BackColor=vbYellow Then
    Me.Text0.BackColor=vbWhite
    Else
    Me.Text0.BackColor=vbYellow
    End If

  7. View the form in Normal View


Hope that helps...



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thedbguy avatar image
0 Votes"
thedbguy answered

Hi. To make something blink requires the use of a timer. However, to have something blinking on a form could be considered annoying.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Elise-6836 avatar image
0 Votes"
Elise-6836 answered

@thedbguy Please help me how to make the text box blink. it's for my own personal database since I don't have anyone using it. I just want to get the knowledge on how to make it blink.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thedbguy avatar image
0 Votes"
thedbguy answered Elise-6836 commented

No problem. As I said earlier, you will need to use a form timer. Do you know how to use it?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sorry No, I don't. I'm just the beginner 🔰

0 Votes 0 ·