473,473 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

code to move to next textbox when a command button is clicked

10 New Member
I have created a form using the wizard, to display the contents of the table.
I need to update the table by entering the data through the form.
When i click the update button of my form, it ignores the last text box value.
If i press tab and move to the next text box and click the update button, the last textbox value is taken into account.

When i click the update button, the cursor should automatically be moved to the next textbox. How can this be coded?
Can anyone suggest a solution for this?
May 8 '07 #1
4 4507
cyberdwarf
218 Recognized Expert New Member
Hi

Under normal circumstances you would use something like:
Expand|Select|Wrap|Line Numbers
  1. Me.NextTextBox.SetFocus
BUT what code do you have behind your "Update" button?

Steve
May 8 '07 #2
Surek
10 New Member
Hi

Under normal circumstances you would use something like:
Expand|Select|Wrap|Line Numbers
  1. Me.NextTextBox.SetFocus
BUT what code do you have behind your "Update" button?

Steve
Am getting the values from the textbox and performing some operations on tables.
since my form is created using a wizard it has only one textbox which dynamically retrieves data from the table and the textbox number increases according to the number of rows in my table.
So all the texboxes have a single name for ex. txt_total
So i need to know how can i refer to the next textbox
May 9 '07 #3
cyberdwarf
218 Recognized Expert New Member
Are you talking about a scrolling list of records?
May 9 '07 #4
NeoPa
32,556 Recognized Expert Moderator MVP
...
BUT what code do you have behind your "Update" button?
...
You will need to answer the questions if you want people to help you.
May 11 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: HP | last post by:
Hi, Does anyone know if it is possible to force the code to pause during every iteration of a FOR ... NEXT loop, and wait for the user to click a command button for the next iteration. I need to...
1
by: LenS | last post by:
If this is the wrong place to post this, please advise better place. Otherwise, I have created the following python program and it works. Running on XP. I think I am now at that stage of learning...
6
by: Sally | last post by:
I need to be able to click in a subform and run code but at the same time I need to be able to scroll the records without running the code. I tried coding the Enter event of the subform control but...
8
by: jquest | last post by:
Hi Again; I have had help from this group before and want to thank everyone, especially PCDatasheet. My database includes a field called HomePhone, it uses the (xxx)xxx-xxx format to include...
1
by: JBD | last post by:
Hi, I have a button that fires the below sub routine. This works fine if the user clicks the button as they are supposed to, even if they click it repeatedly. However, if you click "refresh" on...
2
by: wrytat | last post by:
I have a datagrid and I created a textbox and a button in a column of every row. How do I make it such that when the user click the button, i can get the value entered in the textbox, and how do I...
4
by: Craig831 | last post by:
First off, I apologize if this gets long. I'm simply trying to give you all enough information to help me out. I'm writing (almost finished, actually), my first VB.Net application. It's a forms...
17
by: radhikams | last post by:
Hi I want to create a drag drop tool box using javascript... Can anyone please guide me in this regard Thanks
5
by: michels287 | last post by:
Right now I have a touchscreen with a virual keyboard. I would like to create arrow keys. If the user messed up the inputted text, he can move the blinking cursor left one space at a time between...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.