Cross join to create ledger type query from 4 tables (1 Viewer)

Ramnik

Registered User.
Local time
Today, 14:46
Joined
Jul 12, 2012
Messages
145
hello everyone ,
i have 4 queries in which data needs to be connected from the date and shown as a single date showing each sections entry in a row and a cumulative total is maintained as the balance .
Kindly see the attached image
thanksss
 

Attachments

  • LEDGER QUERY.jpg
    LEDGER QUERY.jpg
    92.8 KB · Views: 183

Ramnik

Registered User.
Local time
Today, 14:46
Joined
Jul 12, 2012
Messages
145
isn't it possible ??????????
 

JHB

Have been here a while
Local time
Today, 11:16
Joined
Jun 17, 2012
Messages
7,732
Do you have some sample data, (in table or spreadsheet), from the 4 tables?
 

Ramnik

Registered User.
Local time
Today, 14:46
Joined
Jul 12, 2012
Messages
145
this is the temporary report i have created ...
dates from all four sections need to be mapped and a ledger like report is needed with cumulative balance shown as i have previously asked ..
thankssss
 

Attachments

  • LEDGEREG.PNG
    LEDGEREG.PNG
    56.2 KB · Views: 179

JHB

Have been here a while
Local time
Today, 11:16
Joined
Jun 17, 2012
Messages
7,732
The data you show do not have any corresponding dates, so ...!
 

Ramnik

Registered User.
Local time
Today, 14:46
Joined
Jul 12, 2012
Messages
145
does it really matter ????? they may have common dates or may not have ....
but it should show zero for the uncommon dates and common date's data is put on one row .... ya that particular product might not have it but that's not the point .
you can take any common dates for illustration ...
 

JHB

Have been here a while
Local time
Today, 11:16
Joined
Jun 17, 2012
Messages
7,732
You can use a Union query to set the data up in "Add1", "Add2", "Rej1", "Rej2", then a second query to sum the data together, and then a third query to make the running sum. Maybe you can "cook" the queries down to two.
I've made an example in the attach database, run the query "QueryRunningSum".
 

Attachments

  • RamNik.accdb
    512 KB · Views: 108

Ramnik

Registered User.
Local time
Today, 14:46
Joined
Jul 12, 2012
Messages
145
that was just toooo good ....
Thanks for helping brother , i will implement this logic . didn't knew it before . awesum stuff...
 

Users who are viewing this thread

Top Bottom