Get multiple data against records in horizontally (1 Viewer)

lalit81inin

New member
Local time
Today, 13:21
Joined
May 22, 2020
Messages
8
I am having the table where data with the same invoice number stored as shown in table 2 and I would like to display it as shown in table2
Table1 Table1

invoicenoamntmonth
123​
77​
jan
453​
89​
feb
123​
65​
april
321​
34​
jan
321​
44​
feb
453​
87​
mar
321​
45​
may
Table2 Table2

invoiceamnt1amnt2amnt3
123​
77​
65​
321​
34​
44​
45​
453​
89​
87​
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:51
Joined
May 7, 2009
Messages
19,245
well, you need to have a vba to put your months as Number (see UDF, fnInvoicePos in Module1).
then create a Crosstab (FinalQuery) query out of Query1.
FinalQuery is the one you need.
 

Attachments

  • TEST_DB.accdb
    800 KB · Views: 31

lalit81inin

New member
Local time
Today, 13:21
Joined
May 22, 2020
Messages
8
well, you need to have a vba to put your months as Number (see UDF, fnInvoicePos in Module1).
then create a Crosstab (FinalQuery) query out of Query1.
FinalQuery is the one you need.
Hi Thanks arnelgp this worked for me but i was looking for output as shown in below it missed to mention month of billing.
invoicenobilling month1Amount1billing month2Amount2billing month3Amount3
123jan77april65
321jan34feb44may45
453feb89mar87
 

Users who are viewing this thread

Top Bottom