J
John Daily
Running Access 2k
I have 3 table I need to pull data from. They are all linked by [acct_num], it is primary in 2 tables but not the third because the third table has multiple [trans_code]s for each [acct_num]. I have a patient info table, a payment info table, and a denial codes table, again all are connected by the acct number.
When I do a normal query with all 3 tables linked I get multiple acct numbers, multiple payment information ([total_charges] and [acct_bal]), but will get unique denial code information ([trans_code] and [trans_date]). Here is an example:
acct_num trans_date trans_code total_charges acct_bal
000000005 10/1/03 T5000 $1,500.00 $1,500.00
000000005 10/1/03 T5005 $1,500.00 $1,500.00
000000005 10/15/03 T5010 $1,500.00 $ 450.00
The total_charges never really change. The person can have the same acct # w/ multiple trans codes on multiple dates. The total charges stay the same. The acct bal usually changes though.
The payment information table is unique that the acct num is primary key, the same with the patient information table. The denial code table is the one I am having problems with because it is pulling up the same charges for the same acct num withn all of the trans dates and trans codes.
What I need is just 1 acct_num, 1 total_charges, multiple trans_code, multiple trans_date for my reports
Example:
0000000005 $1,500.00 $450.00 10/1/03 T5000
10/1/03 T5005
10/15/03 T5010
I can do this on my forms but just can't generate the data for a summary report and detail report.
Any suggestions?
Thank you in advance!
John
I have 3 table I need to pull data from. They are all linked by [acct_num], it is primary in 2 tables but not the third because the third table has multiple [trans_code]s for each [acct_num]. I have a patient info table, a payment info table, and a denial codes table, again all are connected by the acct number.
When I do a normal query with all 3 tables linked I get multiple acct numbers, multiple payment information ([total_charges] and [acct_bal]), but will get unique denial code information ([trans_code] and [trans_date]). Here is an example:
acct_num trans_date trans_code total_charges acct_bal
000000005 10/1/03 T5000 $1,500.00 $1,500.00
000000005 10/1/03 T5005 $1,500.00 $1,500.00
000000005 10/15/03 T5010 $1,500.00 $ 450.00
The total_charges never really change. The person can have the same acct # w/ multiple trans codes on multiple dates. The total charges stay the same. The acct bal usually changes though.
The payment information table is unique that the acct num is primary key, the same with the patient information table. The denial code table is the one I am having problems with because it is pulling up the same charges for the same acct num withn all of the trans dates and trans codes.
What I need is just 1 acct_num, 1 total_charges, multiple trans_code, multiple trans_date for my reports
Example:
0000000005 $1,500.00 $450.00 10/1/03 T5000
10/1/03 T5005
10/15/03 T5010
I can do this on my forms but just can't generate the data for a summary report and detail report.
Any suggestions?
Thank you in advance!
John