Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JohnLong

    Setfocus on commandbutton

    There is a key-up event declared and an enter event on the button, after these events the focus has to go to the lastcommand-button.
  2. JohnLong

    Setfocus on commandbutton

    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...
  3. JohnLong

    setfocus at commandbutton

    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...
  4. JohnLong

    setfocus at commandbutton

    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...
  5. JohnLong

    setfocus at commandbutton

    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...
  6. JohnLong

    setfocus at commandbutton

    Hi, Thanks for your reaction. For me its the first time to create an event.Maybe you can give me a tip how I can make this event. Thanks, Jan
  7. JohnLong

    setfocus at commandbutton

    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
  8. JohnLong

    setfocus at commandbutton

    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
  9. JohnLong

    setfocus at commandbutton

    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...
  10. JohnLong

    Focus

    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...
  11. JohnLong

    checkbox-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...
  12. JohnLong

    checkbox-property

    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.
  13. JohnLong

    checkbox-property

    I am using VBA-controls in Word
  14. JohnLong

    checkbox-property

    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
  15. JohnLong

    checkbox-property

    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?

Part and Inventory Search

Back
Top