Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-22-2005, 02:11 PM   #1
Member (11 bit)
 
sdkfz's Avatar
 
Join Date: Dec 2001
Location: Shakopee MN
Posts: 1,293
Access 97 - DLookUp Question

I am trying to emulate the northwind validate ID macro, you'd think I could copy a macro and change the field/form names around but........

My goal is to have a pop up come up when some one types in a SSN that is already in the DB

My issue is I do not get this custom validation, all I get is the normal Access primary key error. The DB was moved to a DB2 Back end so the nice and pretty Access error messages are no longer coming up since the two systems do not play together as well as a Access front end and back end DB do so I need a better end user error message.

Form Name: FrmCustomer_Info
Field Name:txtTax ID Number
Field Control Source:Tax ID Number (a primary key)

Macro Name: McrIsItDup.validateID - The validate ID is in the macro name column inside the macro

Condition1: DLookUp("[txtTax ID Number]","[FrmCustomer_Info]","[txtTax ID Number] = Form.[FrmCustomer_Info]") Is Not Null

Action1: MsgBox Information type with a beep
Condition2 "..." no quotes in macro
Action2: Cancel Event

On the form the Before Update property is: McrIsItDup.ValidateID for the control where you type in the SSN - Tax ID Number

I have tried with and without the txt to see if it is the control or field name.
I tried moving macro kick off from before update to On Lost Focus.
I tried taking off the dot dot dot condition

The best part of this mess is that here I am at work while on vacation, so far up to 12 hours during a 40 hour vacation. GGRRR

Thanks
__________________
Never Argue With An Idiot. They'll Drag You Down To Their Level And Then Beat You With Experience.
sdkfz is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:22 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2