G
GRCC
Hi, I am new to conditional queries. We use access 97 in our club. Our DB
has the following feilds in one table:member name- address1,
street1,city1,zip1.and address2,street2,city2,zip2. The billing address
field either has a 1 or a 2 in it depending where the member is at the time.
1 is local address, 2 is northern address. We want to be able to export a
text file with the correct address at the time of the mailing. I have tried
using the expression builder but keep getting an error message "invalid
brackets" ? Any help or point me to some reference info? Sorry for the long
post, but this is very important for us. Below is what I have typed in the
expression builder of access 97. I assume I should be using the expression
builder?
Thanks,
Frank
Switch([Member]![Billing]=1,[Member]![Address1],[Member]![Billing]=2,[Member
]![Address2],[Member]![Billing]=1,[Member]![City1],[Member!Billing]=2,[Membe
r!City1]=2,[Member!Billing]=1,[Member!State1],[Member!Billing]=2,[Member!Sta
te2],[Member!Billing]=1,[Member!Zip1],[Member!Billing]=2,[Member!Zip2])
has the following feilds in one table:member name- address1,
street1,city1,zip1.and address2,street2,city2,zip2. The billing address
field either has a 1 or a 2 in it depending where the member is at the time.
1 is local address, 2 is northern address. We want to be able to export a
text file with the correct address at the time of the mailing. I have tried
using the expression builder but keep getting an error message "invalid
brackets" ? Any help or point me to some reference info? Sorry for the long
post, but this is very important for us. Below is what I have typed in the
expression builder of access 97. I assume I should be using the expression
builder?
Thanks,
Frank
Switch([Member]![Billing]=1,[Member]![Address1],[Member]![Billing]=2,[Member
]![Address2],[Member]![Billing]=1,[Member]![City1],[Member!Billing]=2,[Membe
r!City1]=2,[Member!Billing]=1,[Member!State1],[Member!Billing]=2,[Member!Sta
te2],[Member!Billing]=1,[Member!Zip1],[Member!Billing]=2,[Member!Zip2])