S
sjeskey
I have an access table of alumni for my university,
and it stores both their home and their business address. there is
another field that is a dropdown box that you can choose which they
prefer to recieve their mail at.
now, i print out reports that basically makes labels out of them so i
can mail out to people.
im trying to write an iif statement, or somehow create reports that
will check the value in prefaddr (home or work), and then based on
that display all the corresponding address fields, either waddress,
wcity, wstate, and wzip, or haddress, hcity, hstate, and hzip.
i've tried many things and cant get it to work, im not sure if im
supposed to use a query to do that, then drive it into a report, or
just put it right into the report.
if anyone can help me with the expression i need to write i would
greatly appreciate it. i built the whole database and reports a few
years ago, (they are in access 2003) and just now was asked to fix
that problem. if it would be easier to do some vb backend, i could do
that, i just need a little guidance or a suggestion as to what the
easiest way to go about it would be, as im far from an access
programmer ( i do vb/asp.net and c#, so thinking back to my access
days is difficult)
and it stores both their home and their business address. there is
another field that is a dropdown box that you can choose which they
prefer to recieve their mail at.
now, i print out reports that basically makes labels out of them so i
can mail out to people.
im trying to write an iif statement, or somehow create reports that
will check the value in prefaddr (home or work), and then based on
that display all the corresponding address fields, either waddress,
wcity, wstate, and wzip, or haddress, hcity, hstate, and hzip.
i've tried many things and cant get it to work, im not sure if im
supposed to use a query to do that, then drive it into a report, or
just put it right into the report.
if anyone can help me with the expression i need to write i would
greatly appreciate it. i built the whole database and reports a few
years ago, (they are in access 2003) and just now was asked to fix
that problem. if it would be easier to do some vb backend, i could do
that, i just need a little guidance or a suggestion as to what the
easiest way to go about it would be, as im far from an access
programmer ( i do vb/asp.net and c#, so thinking back to my access
days is difficult)