Hypetia... Can't get your example to work. I placed two text boxes on a form and placed your code but I can type any non numeric character without getting the error message and the enter key doesn't work. ???
Thanks for the detailed explanation George. I really appreciate it. I have printed the info and will read it until I get it. I have also looked up help for ActiveControl in VB6 and was surprised to find pertinent info. I hope your info and the help info will turn the light on. I consider myself...
Thanks for responding so quickly. I understand the first part... set Forms keypreview to true but part two, "... in the Form_KeyPress(KeyAscii as Integer) check ActiveControl." Could you be a little more specific? Do you mean I should write a sub routine in the form named Form_Keypress(KeyAscii...
I have to validate numeric entry and the enter key press in 8 text boxes. After a number is entered and/or the enter or tab key is pressed, focus is set to the next text box. I wrote a KeyPress sub routine and validation works fine. I'd like to call the KeyPress sub routine as a function instead...
I have a list box that is automatically populated when the form loads. When a user selects a name in the list box the name is displayed in a text box. The text box is set to multiline but no matter which carriage return code I use only one line is printed. Selection one is replaced by selection...
Protection is correct. When the doc is protected I cannot tab from field to field or to the drop down list. When I press the tab key a tab space is created and pushes the box to the right. If I place the cursor in the field or drop down list the box becomes highlighted but I can't enter text...
A template I created last year has gone nutty on me. The first 3 pages have text form fields and a couple of drop down boxes. They work fine. The next text form fields and a drop down list are on page 6. About a month ago the fields and drop down on page 6 quit working. I have them shaded and...
Until 2 days ago each time I opened Word a new doc opened on the left and a window on the right displayed recent files. I haven't changed anything but the recent file window doesn't display any more. I checked settings and word help without success. Any advice? Word 2002 (XP), SP3.
I use Word 2002. I have a 16 page report. Would like to preview each page before printing. Only two controls are displayed on the print preview tool bar: view single page and view 6 pages. I've searched tools>customize but no next page button. Searched Word help and the web but haven't...
I create a report that requires that use of the Forms and Drawing toolbars. I don't want clients to see those tool bars when they open the report. Before saving the report I uncheck those tool bars in Tools>Customize>Toolbars tab however each time I open a Word report, document or template the...
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.