Advertisement

06.11.2008 at 04:42PM PDT, ID: 23477849
[x]
Attachment Details

Auto fill text field on a form only if the value is different from another bound field.

Asked by SteveL13 in Microsoft Access Database

I have a form bound to a query.  On the form are two text field that auto-populate on an afterupdate event of a combo box.  The first field is "txtCustomer_1" from the query field named "Customer_1".  The second field on the form is "txtCustomer_2" frm the query field named "Customer_2".  I want "txtCustomer_2" field to auto-populate ONLY if the value is different than the value in "Customer_1".

Here's what I have for the control source for the "txtCustomer_2" field but its not working...

=IIf([Customer_1]=[Customer_2],"",[Customer_2])

?????????Start Free Trial
[+][-]06.11.2008 at 04:54PM PDT, ID: 21765116

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 05:06PM PDT, ID: 21765162

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 05:55PM PDT, ID: 21765354

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 06:17PM PDT, ID: 21765438

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 06:35PM PDT, ID: 21765541

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Sign Up Now!
Solution Provided By: DatabaseMX
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628