473,387 Members | 1,705 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,387 software developers and data experts.

Data required validation in form View

Access 2003 - I have set all records in a table to required, trying to add new record in table view gives relevent errors, but does not do this in form view - i need to ensure that all fields have data in them, form doesnt add record but doesnt give errors - please help if u can
Nov 22 '06 #1
3 2252
willakawill
1,646 1GB
Access 2003 - I have set all records in a table to required, trying to add new record in table view gives relevent errors, but does not do this in form view - i need to ensure that all fields have data in them, form doesnt add record but doesnt give errors - please help if u can
When you are using databound controls in Access you have to do a little bit of coding to check the values in your controls. While it is fairly convenient for a beginner to have Access populate a form and handle new and deleted records, there are limits to what you can control. I never use data bound controls and there is quite a steep learning curve to get to that place. Up to you if you want to learn it. It won't happen in a forum though. You are going to have to get a book and work through some examples.

Good luck
Nov 22 '06 #2
When you are using databound controls in Access you have to do a little bit of coding to check the values in your controls. While it is fairly convenient for a beginner to have Access populate a form and handle new and deleted records, there are limits to what you can control. I never use data bound controls and there is quite a steep learning curve to get to that place. Up to you if you want to learn it. It won't happen in a forum though. You are going to have to get a book and work through some examples.

Good luck
Thanks for your feedback, whilst I am not an expert I do use the code builder section so I could use validation rules such as isnull, trim(field) = "" etc, is this what you mean, or do i unbound the controls and update/ add record to table on close.
Nov 22 '06 #3
NeoPa
32,556 Expert Mod 16PB
Yes, IsNull() is a good one to use for this.
i think what Will's saying is that the Required property is handled automatically in Table layout, but a Form is something you 'superimpose' and is a higher level - not directly connected to the underlying table as a table grid is.
Nov 22 '06 #4

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

Similar topics

2
by: Mark Creelman | last post by:
Hi: I am relatively new to ASP. I prefer Perl, but need to do this form to e-mail sipt for a web page, See Example of script below that works fine. I want to add the feature to this where it...
2
by: Mark Reed | last post by:
Hi all, This is probably a really simple question but I have been unable to figure it out. I have a field () which needs to have a value entered by the user but only if another field () is not...
3
by: Rick | last post by:
I have an interesting problem when I run the following code in Netscape (7.02) vs. IE. This page works great in IE and all my controls bring up the validation summary dialog box if the required...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
0
by: Wayne Phipps | last post by:
Hi There, I want to be able to validate data entered by a user onto a form. Different fields will have different validation requirements. As an example, a text box may only allow numeric,...
3
by: Furty | last post by:
Hi, I'm looking for the best practice for creating a generic data validation implementation for my data bound business objects. I currently have a business object base class implementing the...
17
by: stathis gotsis | last post by:
Hello everyone, I am tying to come up with an elegant way to process some input data that come from a form. When the user hits the 'Submit' button, i want the form to appear again with the...
0
by: dinsdale | last post by:
Wow, this is a really embarassing thing to have to ask about... I have an asp.net page with a multiview control in it. We want to enter person info in a semi - wizard style and I wanted to use...
1
by: SkipNRun | last post by:
I am a novice when comes to JavaScript, AJAX. I am working on a form, which will allow users to update their contact information. In order to make the form flexible, I need to use pull down list. ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.