automatic expanding list

megamef

Registered User.
Local time
Today, 23:41
Joined
Apr 18, 2013
Messages
161
Hi All,

Firstly I apologise if this is in the wrong forum section as I'm unsure how to solve this problem and I'm just guessing that some VBA will be involved.

Ok, I'm making an accounts package, the user creates job reports every time they complete a job. The user then creates an invoice which contains the information from a job report.

Any one invoice can contain information from multiple job reports.

There is a field called J_InvoiceNumber in the job reports table and field called I_InvoiceNumber in the Invoices table. A particular job report is linked to a invoice by using the same number in J_InvoiceNumber as was in I_InvoiceNumber.

let me give you an example:

JobReport1, JobReport2 and Jobreport3 all have "1" in their J_InvoiceNumber Field

Jobreport4 has "2" in it's J_InvoiceNumber field.


so now Invoice1 which has "1" in it's I_InvoiceNumber field has 3 job reports and Invoice2 which has "2" in it's I_InvoiceNumber field has 1 job report.


This works for presenting the information for each invoice in a Access Report but now I'm trying to make a table view just to see all the invoices and job reports in a big list.

The problem is that using a query presents me with the same information duplicated. So in the example the query would display I_InvoiceNumber as "1" for jobreport1 then a new record showing I_InvoiceNumber as "1" for jobreport2 and then another new record for jobreport3 again showing I_InvoiceNumber as "1".

What I want is for I_InvoiceNumber to be displayed once and then prehaps a expanding tree showing all the job reports sharing this number in their J_InvoiceNumber field.
 
I don't know of any Access output method that will do what you're suggesting. I know of other reporting tools that will create this hierarchical view, the nearest thing I can suggest in Access is a simple report that is grouped by Invoice number but it doesn't have the expandable tree view you're wanting

David
 
OK, thanks anyway. My (far from ideal) solution is now to use 2 separate queries, one which only has info from the invoice table so doesn't repeat and the other as described above. All the infomation in there way it's just a bit messy.

Thanks
 

Users who are viewing this thread

Back
Top Bottom