I have a comments field, but when I press enter, it goes to the next field. How can I change it so that, when I press enter, it goes to the next row in that field?
I also want to know if I have a field with two different states listed, how can I select one by pressing enter?
I belive Ctrl+Enter is the newline keystroke in Access; I don't know if there's a way to set up a textbox so pressing Enter automatically inserts a carriage return rather than cycling to the next field.
About the other...I don't really understand what you mean? You have a listbox with two states listed, and you want to select one by highlighting it and pressing Enter? Because that should happen...
Yes, I have a list box but when I tab to that field, it will not highlight the first state in that field. Instead, it puts a dotted box around the first state, but I still have to click the mouse in order to select the correct state. I would like to be able to tab to that field and press enter to highlight and select the first state. Is this possible?
I'll admit, I'm really inexperienced when it comes to Access. I don't know if there's a way to set a default value in a listbox. You might try tabbing to the field, then pressing the down arrow key rather than Enter. That will usually assign control to the options in a listbox, at least in other Windows applications. I know it's an extra keystroke and not really a fix, but unless somebody smarter than me bumps this thread it might be a simple way to get you what you need for the time being.
In the list box you can tab to it and then begin typing the name of the state and it will jump to it. You can then enter or tab on to the next field. Assuming you are using the tab key you probably want to stay on the keyboard rather than having to use the mouse or the down arrow. If your two states have different first letters like IL and MN then you will only have to enter one letter.
A quick bump: been doing some reading and I thought I'd post the true answer to your original question.
Doing this is, I think, a horrible idea, by the way.
You could alter the KeyPress event for the controls in question (the memo textbox and listbox) so that the Enter key behaved appropriately in each case. I don't know enough about it to give sample code, but that'd be the thing to change.
Status
Not open for further replies.
You have insufficient privileges to reply here.
Related Threads
?
?
?
?
?
Tech Support Guy
9.9M posts
859.7K members
Since 1998
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!