Solved

Which is quicker?

Posted on 1998-11-21
1
279 Views
Last Modified: 2010-05-03
Which of these is quicker ?

"Iif" (inline if) or "If.. then... End If" ???
Speed is cruicial in the routine I need them in...
0
Comment
Question by:lbowers
1 Comment
 
LVL 2

Accepted Solution

by:
KJHDI12 earned 50 total points
ID: 1446039
I did some calculations and ran them in 1000000 loops and got this result:

  If then else end if:        1492ms
  Iif                         9500ms

I used the ARTimer control to time it. It's free and you can download it at www.download.com.

Mr. Fixit

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now