Hello, new to the forums, I am taking over a database and Im trying to clean up some of the Code as well as make it more user/Design friendly. In this case I am trying to get rid of about 100+ querys with a bit of VBA code, now I dont mind using queries but i think it would be more simplistic and make for less bloat using the VBA. unless there is a way to do it in SQL then i could do it there also.
Here is what I need to do.... I have tblWorkCode with User inputted data, and template2_Hold1 with Data imported from an Excel Sheet. I need to compare Resource Group, Country, Rate type and Workforce with Resource Group, Working_in _Country, Rate type and Workforce.
Based on the results tblWorkCode I need to have WLID and WID populate the same fields in template2_Hold1. If the Comparison doesn’t come back with a combo then it would prompt the user to create the entry into the tblWorkCode.
Now if it matches a combination of the 4 but the WLID and/or WID are Null then the user will be prompted to enter just the WLID or the WID (this will be based on information outside of the Information in the DB). This part I shouldn’t have much trouble coding.
I hope this makes some sense, and Thanks for any help given. Added a sample of the 2 tables and some of the code Ive been trying. The Code is in the VBA on the button form. Ill probably just put it in a module if we can get it working.
Thanks in advance for any help.