Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / November 2007

Tip: Looking for answers? Try searching our database.

Validation Rules in Access 2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rcoombe@amethystgroup.co.uk - 05 Nov 2007 15:05 GMT
Afternoon,

Apologies if this topic has been covered but i struggled to find it if
it has. I'm a bit of a novice in Access so i was hoping someone could
help me.

At our warehouse we house alot of products from different companies,
when they come in the door we would have pallets of the same stock and
they would have a Product Code then "x" amount of days later some
stock would go out to a store. We have a basic DB to keep everything
in order but we are having problems with human error. i.e. a product
code might be 12345-A and the inputter might put 12345/A or even type
it wrong all together i.e. 122456-A.

I've been looking at various input masks and validation rules to
combat this situation. We have a list of the product codes that we
will have in and i was wondering if anyone could advise me if i could
put a validation rule in so that if the inputter tries to enter a
product code not on the list of valid product codes it wont let him/
her.

I've looked at the DLookUp function but had no joy.

Any help at all would be appreciated.

Thanks

Ross
Douglas J. Steele - 05 Nov 2007 15:26 GMT
How many different products do you have? If it's a reasonable number (a few
hundred, say), you might be best off using a combo box rather than a text
box. Set its LimitToList property to True, and they'll only be able to
select values that are in the list.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Afternoon,
>
[quoted text clipped - 24 lines]
>
> Ross
Klatuu - 05 Nov 2007 16:15 GMT
DLookup would be one way to do it; however, a better way would be to change
the text box where they are entering the code to a combo box.  The combo will
not accept a value that is not in the list if you set the Limit To List
property to Yes.
Signature

Dave Hargis, Microsoft Access MVP

> Afternoon,
>
[quoted text clipped - 24 lines]
>
> Ross
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.