Yes, that's pretty much what happens except that the entry in the textbox is checked by the cmdAdd routine to make sure it is 1) in listbox1, and 2) not already selected, before it is put in listbox2. In other words, the code to put textbox value into listbox = cmdAdd()
I'll give this a try...
Gerry,
Thanks for your reply. I thought that would be a good idea too and I tried it but it did not work. The focus still goes to the command button when I enter the item.
Regards,
Marcia
I think so. I tried to simplify my form for asking the question but there are additional considerations.
I have another method of choosing items by clicking listbox1. If they click from the list then cmdAdd is run after each item. After cmdAdd is run, the item appears in listbox2. (Another...
Yes, this is true. However, I want to call my cmdAdd subroutine on each item as I go. I don't know how to do that each time the user hits enter.
Thanks,
Marcia
I have a textbox that collects one or more item numbers from the user. After each entry, a subroutine is run which I call from textBox_AfterUpdate.
When the user is done entering items, I need control to shift to a commandButton which runs another routine.
I've been able to construct code...
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.