Output is generated with repeated rows (1 Viewer)

KNMSRK

New member
Local time
Today, 10:06
Joined
Dec 29, 2019
Messages
2
Hi,

I have created tables and queries and linked the queries to Macro to generate the output

Output is generated in a table "GrossSalary"

Please find attached the database and help

Thank you,
KNM
 

Attachments

  • Training.accdb
    1.8 MB · Views: 68

vba_php

Forum Troll
Local time
Yesterday, 23:36
Joined
Oct 6, 2019
Messages
2,880
KN,

Your macro is deleting tables and creating new ones. why? I think you can change this whole thing whereby you end up with the proper table relationships and the necessary queries to calculate the financial data it looks like you're trying to get. it looks like there's too many steps here. I didn't look at the ops of all the objects though. and you don't have any table relationships setup either. at least there were none listed in the relationships window.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 05:36
Joined
Feb 19, 2013
Messages
16,607
not sure why you are using make tables or what your final result should look like for your report, but looks like you need to link the two tables in queryGrossSalary ( on employeename).

Going forward linking on names is a bad idea (names can change or be misspelled). Better to use primary keys
 

Users who are viewing this thread

Top Bottom