Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - URGENT! - Validation in Access 2000
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

URGENT! - Validation in Access 2000

 Post Reply Post Reply
Author
hockenpj View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2003
Location: Belgium
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote hockenpj Quote  Post ReplyReply Direct Link To This Post Topic: URGENT! - Validation in Access 2000
    Posted: 05 March 2003 at 3:43pm

Hi,

I want to add validation to an Access database.  I know that this is done when creating a table.

What I want to do is to define a minimum length of text that needs to be entered in a First Name field.

Do I need to add something in the Input Mask?

Please Help Me!



Edited by hockenpj
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2003 at 9:12pm
Well you could just put a validation rule into the fieldname so something like Len([fieldname])>=5   but I don't know if that is a good idea. I would do that either in jscript on the form page or do some asp validation like <%If len(name) < 5 THEN GOTOHELL()%> or both to be secure. The problem with doing that in Access only is that the db would throw an error updating or inserting a field and your page would not render. This means you would have to write an error handler that catches exactly that to let the user know what he did wrong.
Back to Top
hockenpj View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2003
Location: Belgium
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote hockenpj Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2003 at 3:27am

Michael,

Thank you so much for your prompt reply.

Len([fieldname])>=5 works just fine for me.

You don't know how long I spent trying to work out the Len bit!

About the Jscirpt and ASP validation there is no need.  It is not for an onine apllication.

It is for my AS ICT OCR Set Task - you rember the other post?

Thank you so much!

Back to Top
hockenpj View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2003
Location: Belgium
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote hockenpj Quote  Post ReplyReply Direct Link To This Post Posted: 06 March 2003 at 9:44am

Michael,

Can you suggest any similar validation for Access 2000, but this time it is to validate an e-mail address eg. has to have an @ symbol etc

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 07 March 2003 at 1:18am
Search Access Help for Input Masks.
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.