View Single Post
  #1  
Old August 11th, 2004, 04:15 AM
external usenet poster
 
Posts: n/a
Default How to phrase If/Then clauses in the control source field

Hello,
This is a continuation of an earlier thread about
Parsing strings from one field into many. I making a
database,that contains five fields of overlap and to make
the data entry easier I am trying to automate some of it.
I have a code field, and then four other fields whose
information can be derived from the code ((codelooks like
this: 01MP, and has four parts. The first number refers
to the year 2000, the second number refers the season of
the year (spring), the third to type of media (a
magazine), and the fourth the genre (politics).)) Anyway,
my problem lies in the fact that the code only has one
digit for the year, and the time span is from 1996 to
present. so how could one phrase an expression that
essentially says: if the first digit of the code string
is =6 but =9, add the value to 1990, and if the value
is =0 but =5 add it to 2000 (a short term solution; the
code thing will eventually be revised). Thanks for any
help or info you can provide!