Advertisement

04.02.2008 at 01:32AM PDT, ID: 23288422
[x]
Attachment Details

MS Access - IIf statements in Query

Asked by andyb7901 in Microsoft Access Database, SQL Query Syntax, Access Forms

Hi,

I have two tables. I need to have a query which says If the ID's in both tables match, set field 1 = True, otherwise if the do not, AND field 1 = Yes, set field 1 = False.
Something like
IIf(tbl1.id = tbl2.id, tbl_2.Field = True,IIf(tbl1.id <> tbl2.id AND tbl2.field1 = True,tbl2.field1 = False)

Can anyone help? Really urgent?

ThanksStart Free Trial
[+][-]04.02.2008 at 01:54AM PDT, ID: 21261151

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.

 
[+][-]04.02.2008 at 01:57AM PDT, ID: 21261163

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.

 
[+][-]04.02.2008 at 02:36AM PDT, ID: 21261324

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.

 
[+][-]04.02.2008 at 04:34AM PDT, ID: 21261843

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

Zones: Microsoft Access Database, SQL Query Syntax, Access Forms
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 4
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628