I have 2 tables
Table 1
LabID (This is a number that designates what type of lab it is depending on the number)this is the primary key
LabNam (this is the Name of the LAB)
Table 2
LabNum (this is the same # as LabID and links the two tables)
TypeLoc (loc num such as 10N(trauma) which tells where they were treated)
Labtype (Same as LabName in table 1)
I would like to create a query that will change the typeLoc from 10N to Trauma as well as the other TypeLoc codes such as 3N/C to SICU and so on for each TypeLoc. Then I want it to give me a table that shows the LabName performed for each Type Loc and how many were done for each Lab Name and Unit. In other words right now I get the info in a txt format. I manually change the LabNum to the LabName depending on what number is associated with it. Then I manually change the name of each type Local as follows
10N-Trauma, 3N/C-SICU 5SPI-PICU, S441-BURN and (4CN,4EN1,4EN2,4NI1,4NI2,4NI3,4NI4)-are all NICU I do a cross tab query in excel to total all of these and then enter them into the excel spreadsheet for each type on a monthly basis. I would like to automate this process as much as possible but I am having trouble. Any help would be appreciated. I am not good at VB Code and have more knowledge of Access but any help would be appreciated.
Table 1
LabID (This is a number that designates what type of lab it is depending on the number)this is the primary key
LabNam (this is the Name of the LAB)
Table 2
LabNum (this is the same # as LabID and links the two tables)
TypeLoc (loc num such as 10N(trauma) which tells where they were treated)
Labtype (Same as LabName in table 1)
I would like to create a query that will change the typeLoc from 10N to Trauma as well as the other TypeLoc codes such as 3N/C to SICU and so on for each TypeLoc. Then I want it to give me a table that shows the LabName performed for each Type Loc and how many were done for each Lab Name and Unit. In other words right now I get the info in a txt format. I manually change the LabNum to the LabName depending on what number is associated with it. Then I manually change the name of each type Local as follows
10N-Trauma, 3N/C-SICU 5SPI-PICU, S441-BURN and (4CN,4EN1,4EN2,4NI1,4NI2,4NI3,4NI4)-are all NICU I do a cross tab query in excel to total all of these and then enter them into the excel spreadsheet for each type on a monthly basis. I would like to automate this process as much as possible but I am having trouble. Any help would be appreciated. I am not good at VB Code and have more knowledge of Access but any help would be appreciated.