M
Michiel Rapati-Kekkonen
I have a database with a table for customers and a related table with their
different addresses.
The addresses have a type field: a number that corresponds with a table
addresstypes:
house-address = 1, mailaddress = 4, delivery-address =2, etc.
now I have an orderform with two subforms for two addresstypes.
The second shows the delivery address, if available.
The first should show the mailaddress, but if that is not present in the
database, then it should take the house address.
if no 4 then 1...
There is my problem.
I donot succeed in producing the proper query for that subform.
If I make something, then it wants to show both addresses, when they are
both available.
It should however show only one, and preferably the mailaddress.
Can someone help me?
TIA
Michiel
different addresses.
The addresses have a type field: a number that corresponds with a table
addresstypes:
house-address = 1, mailaddress = 4, delivery-address =2, etc.
now I have an orderform with two subforms for two addresstypes.
The second shows the delivery address, if available.
The first should show the mailaddress, but if that is not present in the
database, then it should take the house address.
if no 4 then 1...
There is my problem.
I donot succeed in producing the proper query for that subform.
If I make something, then it wants to show both addresses, when they are
both available.
It should however show only one, and preferably the mailaddress.
Can someone help me?
TIA
Michiel