Ryszard Gold Posted February 16, 2009 Posted February 16, 2009 This thread seemed to die a painfull death, so I'm trying again! I've investigated some results on things like "Finds across multiple tables", "Reports from mulitple tables", and the vast majority of results come from very sophisticated developers using vast scrips and cryptic field names. My Goal: To have a seperate layout where my cleint can go, put in a beginning date and end date....either hit a search button or have the system dynamically show the search results (in a portal?) and have the system automatically do a sum calculation. If the results from the invoice and expense table have to be shown seperatly, so be it, as long as I can do a calculation on the results. Thinking a layout with two portals(one from invoice the other from expense) that (and I don't know how to do this) are "filtered" by the input date range. He then prints the page, takes it to his accountant...
mz123 Posted February 16, 2009 Posted February 16, 2009 Create a table called "Global" or "Default" or something along those lines. in that table, create a global field for StartDate and EndDate Relate your Global table with your expenses where Global::StartDate ≤ Expense::Date and Global::EndDate ≥ Expense::Date Relate your Global table with your expenses where Global::StartDate ≤ Invoice::Date and Global::EndDate ≥ Invoice::Date Then put the start and end date fields on the layout and put the two portals on the layout too (make sure the layout is for the "Globals" table) That should do it :
Recommended Posts
This topic is 5757 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