A
Al Hotmail
I need help with report data selection.
In a report I have the code below to print the first line and similar code
to print the 2nd, 3rd & 4th lines. I believe that a function using the
select case would be a better approach. I have tried to generate the
function with no success. PLEASE HELP Al
=IIf([tblFromAcode.FormAcode]=1,[Petition date],
IIf([tblFromAcode.FormAcode]=3,[petition date],
IIf([tblFromAcode.FormAcode]=6,Null,
IIf([tblFromAcode.FormAcode]=7,[Demit],
IIf([tblFromAcode.FormAcode]=8,[Death],
IIf([tblFromAcode.FormAcode]=9,[EA Degree],
IIf([tblFromAcode.FormAcode]=10,[FC Degree],
IIf([tblFromAcode.FormAcode]=11,[MM Degree],
IIf([tblFromAcode.FormAcode]=12,[Exemplified],
IIf(([tblFromAcode.FormAcode]=14 And [sendmail]=- 1),[address],
IIf(([tblFromAcode.FormAcode]=14 And [sendmail]=0),"**UNKNOWN**",
IIf([tblFromAcode.FormAcode]=16,"EA Deg. = " & [EA Degree],
IIf([tblFromAcode.FormAcode]=17,"???UNKNOWN???",
IIf([tblFromAcode.FormAcode]=18,[HomePhone]))))))))))))))
In a report I have the code below to print the first line and similar code
to print the 2nd, 3rd & 4th lines. I believe that a function using the
select case would be a better approach. I have tried to generate the
function with no success. PLEASE HELP Al
=IIf([tblFromAcode.FormAcode]=1,[Petition date],
IIf([tblFromAcode.FormAcode]=3,[petition date],
IIf([tblFromAcode.FormAcode]=6,Null,
IIf([tblFromAcode.FormAcode]=7,[Demit],
IIf([tblFromAcode.FormAcode]=8,[Death],
IIf([tblFromAcode.FormAcode]=9,[EA Degree],
IIf([tblFromAcode.FormAcode]=10,[FC Degree],
IIf([tblFromAcode.FormAcode]=11,[MM Degree],
IIf([tblFromAcode.FormAcode]=12,[Exemplified],
IIf(([tblFromAcode.FormAcode]=14 And [sendmail]=- 1),[address],
IIf(([tblFromAcode.FormAcode]=14 And [sendmail]=0),"**UNKNOWN**",
IIf([tblFromAcode.FormAcode]=16,"EA Deg. = " & [EA Degree],
IIf([tblFromAcode.FormAcode]=17,"???UNKNOWN???",
IIf([tblFromAcode.FormAcode]=18,[HomePhone]))))))))))))))