473,406 Members | 2,356 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,406 software developers and data experts.

Validation and adding to a form

173 100+
i need help!!!!!!!

Has any1 got examples of the following that i can view:

1) simple form field Validations

2) Adding to a database using a form with a adding button

??????

i just need a few examples so i can work from them.

Ur responses will be appreciated.
Nov 16 '06 #1
6 1309
nico5038
3,080 Expert 2GB
Hi Beany, I have some samples at:
www.geocities.com/nico5038
Especially the "Add" form of the "Datasheet with Filter samples" will show you how to check a form before saving the correct values.
Let me know or you need more.

Nic;o)
Nov 16 '06 #2
missinglinq
3,532 Expert 2GB
Here's a couple of generic field validation hacks. The Cancel = True places the cursor back into the offending field if the data entered isn't appropriate.

Expand|Select|Wrap|Line Numbers
  1. 'Checks if a field has been left empty
  2. Private Sub YourField_BeforeUpdate(Cancel As Integer)
  3.   If IsNull(Me.YourField.Value) Then
  4.      MsgBox "You Must Enter Data In This Field!!!"
  5.      Cancel = True
  6.    End If
  7. End Sub 
  8.  
  9. 'Checks to see if the value entered is Numeric
  10. Private Sub YourField_BeforeUpdate(Cancel As Integer)
  11.   If Not IsNumreic(Me.YourField.Value) Then
  12.     MsgBox "You Must Enter Numbers Only In This Field!!!"
  13.     Cancel = True
  14.   End If
  15. End Sub 
  16.  
  17.  
Nov 16 '06 #3
Beany
173 100+
thanks peeps...........


but nico............. i cant open ur files, they are showing as read-only and ive got access 2003, and it wont open it!
Nov 16 '06 #4
nico5038
3,080 Expert 2GB
When opening for the first time in A2003 you need to accept the Conversion option.
Afterwards (when having it in ReadOnly mode) use the Database menu and select the "convert to" option to get an A2003 format.
You'll also have to open the Tools/References, when in VBA code, and uncheck the "Microsoft Active Data Objects" and check the "Microsoft DAO version #.##" library.

Nic;o)
Nov 16 '06 #5
NeoPa
32,556 Expert Mod 16PB
Nic;0),

If, as I hope (I like your style), we are going to see more of you in these forums, you may want to know that currently, posting links won't work correctly on the original post.
An edited post will automatically be converted for you though.
To get around this use the [u r l] tags.
Format (lose the spaces) :
[u r l=actual link]Name to Show[/u r l]
or
[u r l]actual link[/u r l]
Nov 17 '06 #6
nico5038
3,080 Expert 2GB
Pleased to meet you and thanks for your kind words NeoPa :-)
Learning some new html tricks too, still trying to finding my way here, but it's getting easier by the post.

Nic;o)
(BTW this is my "tag" my real name is just Nico)
Nov 17 '06 #7

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

Similar topics

6
by: Hernán Castelo | last post by:
should i to validate all the "Request"s calls like Request.FORM("...") and Request.Cookies("...") ???? if it is so, i have to see inside every "Input" elements like "Text" and even "Hidden"...
72
by: Stephen Poley | last post by:
I have quite often (as have probably many of you) come across HTML forms with irritating bits of Javascript attached. The last straw on this particular camel's back was a large form I was asked to...
3
by: CJM | last post by:
I'm adding some extra features to an intranet-based ASP application...(IE6 clients) As part of the process, I thought I would give the html a mid-life upgrade, ie. remove much of the tag-soup,...
6
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No...
2
by: Dnna | last post by:
I have a table which is bound to an Internet Explorer XML data island. I'm using ASP.NET's client-side validators for an input field in the table. The problem is that if the input fields are in...
4
by: andersoj | last post by:
I have a page that has some required field validators created in the aspx, and other validators created in the Page_Load event. In IE, all validation works as expected. In Firefox, ASPX...
9
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be...
11
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
10
by: gweasel | last post by:
What is the best way to apply a Validation Rule - or rather, where is the best place to put it? Is there an advantage to putting it on the field in the table vs setting the validation rule on the...
3
pradeepjain
by: pradeepjain | last post by:
hii guys , I wanna share a very gud ajax validation script with php... Ajax Form Validation - sForm | chains.ch weblog I am very new to ajax .So i wanna small help....i want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...

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.