G
Guest
I inherited a db with separate sets of fields for physical address and
mailing address, all housed in tblCustomer. Even though the number of
customers with mailing addresses different from their physical addresses is
very small, the staff here have historically been doing double address entry
(entering the physical address also in the mailing address fields for every
customer) in order to be able to run their labels from the mailing address
fields and not missing anyone.
So. It made sense to me to add a Yes/No field to indicate whether a
different mailing address exists, then I could pull my addresses based on the
value in this field. However, I'm not skilled enough to figure out how to
write the query. (I assume I need an Iff statement of some sort but my syntax
isn't working.) For discussion's sake, let's call my fields:
[PAddress] [PCity][PState] [PZip] (physical address fields)
and
[PAddress] [PCity][PState] [PZip] (mailing address fields)
and
[DiffAddress] (the Yes/No field indicating if the mailing address is
different than the physical address.
I would prefer to do this with a query but am open to tips on redesign. It's
always good to know the right way to do things for future reference. Thanks
very much.
mailing address, all housed in tblCustomer. Even though the number of
customers with mailing addresses different from their physical addresses is
very small, the staff here have historically been doing double address entry
(entering the physical address also in the mailing address fields for every
customer) in order to be able to run their labels from the mailing address
fields and not missing anyone.
So. It made sense to me to add a Yes/No field to indicate whether a
different mailing address exists, then I could pull my addresses based on the
value in this field. However, I'm not skilled enough to figure out how to
write the query. (I assume I need an Iff statement of some sort but my syntax
isn't working.) For discussion's sake, let's call my fields:
[PAddress] [PCity][PState] [PZip] (physical address fields)
and
[PAddress] [PCity][PState] [PZip] (mailing address fields)
and
[DiffAddress] (the Yes/No field indicating if the mailing address is
different than the physical address.
I would prefer to do this with a query but am open to tips on redesign. It's
always good to know the right way to do things for future reference. Thanks
very much.