G
Guest
I REALLY need help with an Elseif statement in a query. I am receiving 3 or
4 tables which I convert to access and then have to create tables which will
assign about 300,000 rows with classifications which will be used for groups
in Crystal Reports. For each set of reports, I have to set up about 6
access tables to set up the groups. I am using a make table query to do
this, however the expression box of the IIF is too small for the number of
IIFs I need, so I think I need to be able to do this with code. If someone
would be kind enough to help get me started, I think I will be able to write
the remaining elseif statements on my own. Might need some additional help
calling them up.
Below is a small piece of the query which was working until I ran out of
room in the expression builder box. I think if someone would be kind enough
to take the time to convert these two lines to code I can fill in the rest.
I have written some code in the past in the form or report mode (with lots of
help from this board), but never free standing code like this.
Here are the two lines that I would like one of the GREAT MINDS on this
board to be so kind as to convert.
Table Name: Modified Report Assignments
Fields:
Fund (text)
Center (text)
Account (text)
FCA (text)
Combined Governmental Reports (text)
I need to write some code to populate the "Combined Government Reports"
fields based on the record in either the account or center field.
IIF ([Modified Report Assignments]![Account] Like "411*","Property
taxes",
IIF ([Modified Report Assignments]![Account] Between "413000" and
"414999","Licenses and permits"," "))
THANK YOU so much in advance.
Meg
4 tables which I convert to access and then have to create tables which will
assign about 300,000 rows with classifications which will be used for groups
in Crystal Reports. For each set of reports, I have to set up about 6
access tables to set up the groups. I am using a make table query to do
this, however the expression box of the IIF is too small for the number of
IIFs I need, so I think I need to be able to do this with code. If someone
would be kind enough to help get me started, I think I will be able to write
the remaining elseif statements on my own. Might need some additional help
calling them up.
Below is a small piece of the query which was working until I ran out of
room in the expression builder box. I think if someone would be kind enough
to take the time to convert these two lines to code I can fill in the rest.
I have written some code in the past in the form or report mode (with lots of
help from this board), but never free standing code like this.
Here are the two lines that I would like one of the GREAT MINDS on this
board to be so kind as to convert.
Table Name: Modified Report Assignments
Fields:
Fund (text)
Center (text)
Account (text)
FCA (text)
Combined Governmental Reports (text)
I need to write some code to populate the "Combined Government Reports"
fields based on the record in either the account or center field.
IIF ([Modified Report Assignments]![Account] Like "411*","Property
taxes",
IIF ([Modified Report Assignments]![Account] Between "413000" and
"414999","Licenses and permits"," "))
THANK YOU so much in advance.
Meg