If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Automated button click
Hi,
I have a text box on a form. I would like a button that already exists on the form to be "clicked"(sendkeys) as many times as is reflected in the text box. I think this is possible but I haven't been able to make it work. Thanks in advance for your input..... |
#2
|
|||
|
|||
Automated button click
Why click the button? Why not just call the button's OnClick event's
subroutine the number of times you want it to run? Private Sub txtBoxName_AfterUpdate() Dim lngCount As Long For lngCount = 1 to Me.txtBoxName.Value Call cmdButtonName_Click Next lngCount End Sub -- Ken Snell MS ACCESS MVP "Gregory" wrote in message ... Hi, I have a text box on a form. I would like a button that already exists on the form to be "clicked"(sendkeys) as many times as is reflected in the text box. I think this is possible but I haven't been able to make it work. Thanks in advance for your input..... |
Thread Tools | |
Display Modes | |
|
|