473,388 Members | 1,209 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How to code a text box so users have to enter data

3
I want to force users to enter data in a text box, if not user cannot advance to new record
Nov 13 '14 #1
3 983
twinnyfo
3,653 Expert Mod 2GB
KParn,

It depends on how the user navigates to the new record. I fyou have a button then in the OnClick event of the button, check to make sure all the data has been entered. You would also have to have the AllowAdditions set to False and make those settings at the same time.

However, you don't describe anything about your DB or your form (or your tables), so it is impossible to give any more detailed response.

If you have tried something so far, please show your work and we can trouble shoot from there. We will not write this code for you.
Nov 13 '14 #2
Twinnyfo I have a form with contacts. First and last names for example. If a user forget to enter last name; then I want the system to kick out a message (please enter last name).user should be unable to advance until msg is satisfied.
Nov 14 '14 #3
twinnyfo
3,653 Expert Mod 2GB
@stress999,

Again, it all depends on how the user is to navigate to the next step. If you have a "Next" button, then in that button's OnClick Event, you first validate that there are values in both the First and last Name Text Boxes. If not, then don't allow the form to move to the next step, and set the focus on the Text Box that is missing information.
Nov 14 '14 #4

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

Similar topics

1
by: Susan | last post by:
I have a bound form and subform and am trying to enter the data in both forms programatically. The Linkmaster and Linkchild properties are set. My intent is to be able to look at the data before it...
4
by: timcos | last post by:
I would like to enter data, choose some checkboxes (types of Documents) and have Access automatically create documents fro the data insterted into text and store the Word Documents in a table. ...
1
by: HS1 | last post by:
Hello all - I have a master and a details table presented in two datagrid - I also have some text boxes that present the values from any record in the master table. This also helps to enter new...
1
by: hawkesed | last post by:
Hi All, I am having a problem with an asp.net application that we have that uses javascript. The problem is that the users sometimes can not enter data in to some text box fields. Its like they...
5
by: fkater | last post by:
Hi, we need to enter lots of data which are basicly descriptions of pc hardware configuration like this: Mainboard: vendor=... #of PCI slots=3 slot 1 graphic adapter
1
by: savas_karaduman | last post by:
There is a subform embedded into a Main Form... Subform is standing for entering data into a table... There is a combobox on the Main Form... How Combo Box value can be added into table to which...
1
by: neelesh kumar | last post by:
sir, i have a form created by using a table.In the form load event,i wrote me.allowedits=false me.allowadditions=false me.allowdeletions=false now i am unable to enter data in the text boxes...
1
by: archanadeshmukh | last post by:
Please tell me how can i enter data in row column format in c++ files. when i enter data it gets stored as if a same line text i want to search for perticular name from file
4
by: kveerendrareddy | last post by:
Hi friends, In my web page i have to create a combobox in HTML+JavaScript. The nature of that combobox should be such that it should allow the user to enter the data in the combobox...
2
by: Abedin | last post by:
Hello all, I am having problem in entering data in the form of 1/2 1/22 1/3 3/33 2/44
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.