PC Review


Reply
Thread Tools Rate Thread

DLOOKP to Validate Data Entry?

 
 
New Member
Join Date: Dec 2010
Location: Pittsburgh, PA
Posts: 1
 
      17th Dec 2010
I am extremely new to MS Access and have reached a barrier that I hope someone can help me with. I am trying to validate a user’s entry into a form’s text fields against a table. I believe this can be accomplished with a DLOOKUP but nothing I have tried seems to work. Any help would be greatly appreciated! Below are the details

Two Tables

TblOvrStock

Fields

OvrLoc1 (Format: ## EX: 10)

OvrLoc2 (Format: ## EX: 01)

OvrLoc3 (Format: ## EX: 05)

OvrLoc4 (Format: ## EX: 12)

PckLoc1 (Format: ## EX: 20)

PckLoc2 (Format: ## EX: 05)

PckLoc3 (Format: ## EX: 04)

PckLoc4 (Format: ## EX: 01)

TblValidLoc

Fields

ValidOvrLoc (Format: ######## EX: 10010512)

ValidPckLoc (Format: ######## EX: 20050401)



One Form:

· The first four fields (two digits each) represent a warehouse ‘overstock’ location

§ TxtOvrLoc1 (EX: 10)

§ TxtOvrLoc2 (EX: 01)

§ TxtOvrLoc3 (EX: 05)

§ TxtOvrLoc4 (EX: 12)

· The other four fields represent a warehouse ‘pick’ location

§ TxtPckLoc1 (EX: 20)

§ TxtPckLoc2 (EX: 05)

§ TxtPckLoc3 (EX: 04)

§ TxtPckLoc4 (EX: 01)

The form is intended to insert records into a table (TblOvrStock)

Before the records are inserted, I need to validate that the entries made in The TxtOvrLoc1,2,3,4 fields match a location in the ValidOvrLoc column of TblValidLoc

If match, then do nothing

If no match, then error msg “Not a valid overstock location”

AND validate that the entries made in The TxtPckLoc1,2,3,4 fields match a location in the ValidPckLoc column of TblValidLoc

If match, then do nothing

If no match, then error msg “Not a valid pick location”
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validate data entry in a form through a query =?Utf-8?B?SmFyZWQ=?= Microsoft Access VBA Modules 1 26th Jul 2007 10:23 PM
Validate data entry =?Utf-8?B?QmFyYiBNaWxlcw==?= Microsoft Access Database Table Design 3 21st Nov 2006 01:13 PM
Validate Data Entry =?Utf-8?B?c2NvcnBpb3Jj?= Microsoft Access Forms 5 26th Sep 2005 08:47 PM
FYI: Validate Your Data Entry Inputs!!! Mike Labosh Microsoft VB .NET 0 15th Aug 2005 08:05 PM
Best Way To Validate Data Entry in VB.Net 2003 Atley Microsoft Dot NET Compact Framework 2 14th Jan 2004 05:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:41 PM.