jimlongo Posted November 30, 2010 Posted November 30, 2010 Hi, I have a text block with lines containing merge fields <> <> <> <> The documentation states You can insert punctuation, spaces, line breaks, and text between merge fields as needed. If I put spaces they shrink as they should, However if I put a tab stop between the items on each line they no longer shrink. Is there a solution to this? Thanks, jim
comment Posted November 30, 2010 Posted November 30, 2010 Why aren't you reporting from the child table (assuming there is a child table)?
jimlongo Posted November 30, 2010 Author Posted November 30, 2010 Hi Michael, I'm not sure of your question. The calculation is working just fine, it's only the layout that is a problem.
bruceR Posted November 30, 2010 Posted November 30, 2010 No, you do not have a layout problem. You have a database structure problem. Almost anytime you see someField1; someField2; someField3 it is because the database is not properly set up with a child table. That is definitely the case here; and (as usual) the reporting would be easier if it were set up properly.
comment Posted November 30, 2010 Posted November 30, 2010 Tabs are characters and if a line contains one, it will not slide up. However, the real issue is elsewhere. If you report from a child table, where the body part contains: <> [color:gray]tab <> there will be no problem to solve.
jimlongo Posted November 30, 2010 Author Posted November 30, 2010 Thanks, I'm not being argumentative and excuse me if my screenshot was misleading. The first screenshot was in layout mode. The result of that layout in Browse or Preview is My question is why aren't the lines sliding up? It seems to be a result of using the tab space in the layout. Forgive me if your answer remains the same . . . I can't find the words "child table" anywhere in the documentation. Thanks, jim
bruceR Posted November 30, 2010 Posted November 30, 2010 (edited) It's a very basic and fundamental concept of databases. You have "parent" and "child" tables linked by key fields, most commonly to set up one-to-many relations exactly as your are doing here. Except that you are thinking like a spreadsheet instead of like a database. Edited November 30, 2010 by Guest
jimlongo Posted November 30, 2010 Author Posted November 30, 2010 I'm obviously very confused. The Layout Setup>General> Show records from>Master ID (parent table?). The fields I have in this layout come from that table. Those fields are calculations that derive their data from Members t_ID and Transactions t_ID (related child tables?). Those calculations seem to return the correct data. Why is that an issue in the layout? Thanks again, jim
comment Posted November 30, 2010 Posted November 30, 2010 Those calculations seem to return the correct data. Yes, but they are redundant. You could achieve the same result by placing a portal on the layout, or - preferably - doing the report from one of the child tables (probably the Members table in this case). why aren't the lines sliding up? Because they are not empty; they contain a tab and a carriage return. You COULD use a calculation field to calculate the entire text block, using Case ( not IsEmpty ( ... ) ; ... ) - but again, this would be just spending more efforts to solve a problem which shouldn't exist in the first place.
jimlongo Posted November 30, 2010 Author Posted November 30, 2010 Yes, but they are redundant. You could achieve the same result by placing a portal on the layout, or - preferably - doing the report from one of the child tables (probably the Members table in this case). So I will start a report that has LayoutSetup>General>Show records from "Members" I'll still in some places on this report need to use data from the Master ID table and the Transactions table. Won't I run into the same situation? Thanks for your patience.
comment Posted November 30, 2010 Posted November 30, 2010 So I will start a report that has LayoutSetup>General>Show records from "Members" I'll still in some places on this report need to use data from the Master ID table and the Transactions table. Won't I run into the same situation? It depends on what exactly your report contains. As a rule of thumb, you would produce the report from the most "atomic" table you draw data from. So if your report contains data from the Transactions table - either detailed or summarized - it should be produced from there, with sub-summary parts for the higher-up tables. I am not sure what your "Master" table is about, though. I presume that in the Transactions table, each record is a transaction, and in the Members table, each record represents a member. What does a record in the Master table stand for?
jimlongo Posted November 30, 2010 Author Posted November 30, 2010 (edited) We have 3 types of membership. There are "adults", "juniors" or combinations of those categories which comprise a "family". The Master table is mainly the address that ties together all the members in that household no matter which category they belong to. It's also the main layout that has a portal with Members and Transactions. So 1 Master record for SMITH is related to all the smith Members and all their transactions. Does that make any sense? Edited November 30, 2010 by Guest
comment Posted November 30, 2010 Posted November 30, 2010 Yes, except the name. Why not call it Households or Families?
jimlongo Posted November 30, 2010 Author Posted November 30, 2010 That would be the easy. In this case I want to create a report for each Family, Wouldn't I use Families as the parent table Layout Setup>General>Show records from Families and get data using information from Members_families (names, date of birth, etc., ) and Transactions_families (date,price,category, etc., ) ??
comment Posted November 30, 2010 Posted November 30, 2010 (edited) No, exactly the opposite: the layout should be based on the Transactions table. Information about individual transaction goes into the body part. Members data will be in a sub-summary by MemberID part, and information about the family in a sub-summary by FamilyD part. BTW, I don't see why your RG couldn't be simply: Families -< Members -< Transactions EDIT: Unless I am misunderstanding and the transactions are related to families directly, and not associated with a particular member. Edited November 30, 2010 by Guest
jimlongo Posted November 30, 2010 Author Posted November 30, 2010 Okay I'm going to work on that . . . I'll be back next week. Thanks so much. jim
jimlongo Posted December 8, 2010 Author Posted December 8, 2010 No, exactly the opposite: the layout should be based on the Transactions table. Information about individual transaction goes into the body part. Members data will be in a sub-summary by MemberID part, and information about the family in a sub-summary by FamilyD part. BTW, I don't see why your RG couldn't be simply: Families -< Members -< Transactions EDIT: Unless I am misunderstanding and the transactions are related to families directly, and not associated with a particular member. Transactions are related to Members and grouped together for each Family. In other words each Family has a bunch of transactions, and each may pertain to different Members of the Family. My main layout is the Families table with a portal to the Members table and another portal to the Transactions. I've changed the relationship graph as you suggested, that all works fine. But if I want to send a report for each Family don't I have to base this on the Families table? If I set it up to be based on Members I get a report for each member, or even more if I use Transactions as the parent table. (eg., 10 Families, 30 Members, 80 Transactions)
jimlongo Posted December 8, 2010 Author Posted December 8, 2010 After more tutorials I think maybe I should revisit the structure of this database, especially since it's veered far off topic from where it started . . . I've started a thread to do that here
comment Posted December 8, 2010 Posted December 8, 2010 Transactions are related to Members and grouped together for each Family. In other words each Family has a bunch of transactions, and each may pertain to different Members of the Family. But that's not what your graph shows. The relationship between Members and Transactions should be based on matching MemberID, not Family ID - otherwise no transaction is related to a specific family member. But if I want to send a report for each Family don't I have to base this on the Families table? No, but your layout needs to have a sub-summary by FamilyID part. If you like, you can set this part to cause a page break, so that you can easily separate the reports for each family.
Recommended Posts
This topic is 5098 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