|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Access 2000 functions question
Is it possible to use IF-ELSE statements in M.S. Access 2000????
If so can you leave some examples...... I have some ideas I want to apply using if statements and I need to know if it is possible to do so. |
|
#2
|
|||
|
|||
|
Where are you trying to use this syntax? In the query or in a module?
|
|
#3
|
|||
|
|||
|
I'm going to try and use it in a query.
|
|
#4
|
|||
|
|||
|
MS Access does not have a procedural language.
|
|
#5
|
||||
|
||||
|
yes, it does -- modules (or is it macros? i dunno, cause i don't use either)
but the sql for access includes the IIF function, which might accomplish what you're trying to do, gothrog wish i could help you more, but you didn't say what that was... |
|
#6
|
|||
|
|||
|
Okay. MS Access does have modules. But the question was could he write the ifs in the query like PL/SQL or T-SQL. Access does not provide such a feature.
|
|
#7
|
||||
|
||||
|
yup.. the iif( ) function works very well as an if else statement and I have used it a lot for my queries on statistical analysis (thanks rudy )
this is how it works iif (condition, true, false) iif(fieldName>5.11, tall person, short person) or iif(fieldName>0, fieldName, 0) hope that helps.. ![]() |
|
#8
|
|||
|
|||
|
Thank you
|
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > Access 2000 functions question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|