Davidatlamont Posted April 27, 2007 Posted April 27, 2007 (edited) I'm fairly new to FM and have a database with addresses (only 1 table) listing addresses such as: House Apt 44 1 44 2 44 3 However, when I print I only want to see house # (44) on first record (Apt. 1) I assume I need to handle this in layout, but now sure how. Thanks. Edited April 27, 2007 by Guest
Fitch Posted April 27, 2007 Posted April 27, 2007 You could make a calculated field: Case( Apt = 1 ; House ) ... and use that field on your print layout instead of the actual House field.
Davidatlamont Posted April 27, 2007 Author Posted April 27, 2007 Okay, I can see how this would work. Can I set up calculation with "or". For example, in addition to 1, 2, 3, I may also have apartment numbers such as 1A, 2A, 3A; in this case I would also like House # to print. Therefore, how do I handle multiple conditions (also for example single family dwelling where apt field is blank- house # should always print in this case) Thanks.
David Jondreau Posted April 27, 2007 Posted April 27, 2007 Case(Left(Apt;1) = 1 or IsEmpty(Apt); House)
Davidatlamont Posted April 27, 2007 Author Posted April 27, 2007 I just figured out how to set multiple conditions, this will work great, thanks!
comment Posted April 28, 2007 Posted April 28, 2007 Case(Left(Apt;1) = 1 or IsEmpty(Apt); House) That will also be true for Apt# 11...19 (and Apt# 100...199, etc.). Perhaps a better test would be: Case ( GetAsNumber ( Apt ) = 1 But I would go with a simple subsummary by House instead.
Recommended Posts
This topic is 6786 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now