Hi ,
When I have 10 commandbuttons on my form, I want to control the focus. So, I have chosen for Setfocus, and when the user clicks on the first commandbutton the focus has to go to the 10th commandbutton. But when I have the command:
frm_p6_cmd.setfocus I get an errormessage, with no subject...
Hi,
Thanks so far for this help. This is a very fine way to handle the items to enable or disalbe them. Now I am making a new sub to set-the-focus, with just a few lines of code. I made another sub also with few code, but got some errors and thought that it was not allowed to handle controls...
Hi, I tried it at home, but didn't have your email adress so here is some code:
Private Sub frm_p6_V1_AfterUpdate()
If Len(frm_p6_V1) > 0 Then
If last_item = "frm_p6_C25" Then
txt_array_6(chk_teller) = frm_p6_V1.Text
MsgBox ("v1-step-1")
Call...
Hi, Thanks
I will do that but you have to wait until the end of the afternoon. Here, at the office, I can't visit all sites an sending an email with the code. I have sent the code to another email adress at home as a word document. There I have a better performance and sent the email to you...
I'm sorry, but what do you mean exactly?
This happens when I add some text in a textbox. In the exit-event I want to set the focus. On that moment it is going wrong!
Jan
Sometime the error message is: Needs Object, but the object is still there, and it is enabled and visible. Sometimes the error is a non-reason error.
Jan
A few days ago I had some questions about setfocus. Now I have made a procedure which solves a lot of problems for me with setfocus and commandbuttons. But there is something I don't understand. For some reason vba gives an error when I want to set the focus to the comandbutton, and a few...
Hi,
I have a form with commandbuttons, and a few checkboxes and a textbox. On a moment one of the checkboxes is select via a commandbutton-click. After selecting the checkbox the user must go back to the next commandbutton but the programm sets the focus to the textbox. This textbox property...
Hi,
Yes I tried this one also. Now I find out it doesn't work at all.
I am trying to get the focus to the checkbox by setting its tabindex. But then I get other problems. When I want to set the tabindex of the checkbox, there is no problem, because there are only three of them. But when I want...
I have tried it, but I'm sorry, it doesn't work. I got the message "The argument is not optional". Probably because you mentioned: thisdocument, in my application the checkbox is on a form.
I have tried that, but it doesn't work. When I try this, vba gives the message It can't set the focus on the object because this type doesn't accept "setfocus
I want to set the focus to a checkbox. But vba don't let me doing this. Therefore I want to add this property to the checkbox-property and set the focus to the checkbox. How can I manage this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.