iif function
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Iif function

Iif function

resolvedResolved · High Priority · Version 2000

replyReply Tue 30 Mar 2010, 16:17Delegate Gary said...

Gary has attended:
Access VBA course
Excel VBA Advanced course

Iif function

Good afternoon

I require an Iif function created in a query, so it will probably be SQL specific. The function needs to relate to a lookup table where the value is equal to that of two fields.

Because I record the Officer's collar number in my database the lookup table has independant values but when you reference it against the main table you cannot create a relationship as obviously this would create duplicates. Is there a function/expression that we can write that you reference the two fields with the collar number and if that collar number matches, then references another field with the force unit description. It ideally needs to be placed into a query as the data will be imported on a regular basis. And, I want it to auto workout the details from the query.

So, this is how I want it to work:

Iif ([Officer] = [txtOfficerNumber], Show [txtOfficerUnit], "Unknown"]

Is there a more productive way to action this query. Hope you can help?

Gary

For upcoming training course dates see: Pricing & availability

replyReply Thu 1 Apr 2010, 09:45Trainer Jacob said...

RE: Iif function

Good morning Gary

After reviewing your post we are confident we can reach a solution however it is beyond the scope of this forum.

We will need to review your working files and estimate the amount of work required (e.g 1-3 hours) to create the solution.

As this will involve development time there will be associated costs which we will let you know about before commencing any work.

If you wish to discuss this further please contact us.

Kind regards

Jacob

Wed 7 Apr 2010: Automatically marked as resolved.

 

Please browse our web site to find out more about
microsoft database training and other Microsoft training courses.

Access tip:

Insert The Current Time

To insert the current time into a Table field or Form textbox use:

Ctrl+Colon(:)

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard