kindred169
Programmer
I'm attempting to setup a report at my plant. I assume I need to setup a Crosstab report, but I don't really know how to go about doing it. I'm running into a few problems so if you can solve any or all, I'd appreciate it. Essentially, I have 3 tables. One has employee data such as name, pay number, and shift. Its linked by pay number to another table that has employee spending by FW as well as total spending for the year and thats linked to a table that just has fiscal week (the numbers 1-52).
Problem one is the FW values are text not number (I have no control over this, its the way the company has it set up) so I use Val([FW].[FW]) in order for it to sort properly. This for some reason converts the FW to dollars. Not sure why.
Second, I want to setup a report that gives an employees name and then horizontally displays his spending for FW1, FW2, FW3, etc. up to FW52 then lists the next employee and does the same. I know I could just do a crosstab query but one it doesn't present it as a report, and two I need to select what shift of workers I want to draw from and crosstab queries don't allow user input.
Third, every worker doesnt buy something every week so for example WorkerA doesn't buy anything until week 11, I need every value up until week 11 to be blank or 0. The table I'm drawing from does not allow me insert 0's on weeks they don't purchase things so I have to have the report just understand that and correct for it.
I've tried using a format similar to the sample report Microsoft provides called "SalesAverage" but I can't seem to apply it to my work. Any suggestions or help are welcomed! Thanks.
Problem one is the FW values are text not number (I have no control over this, its the way the company has it set up) so I use Val([FW].[FW]) in order for it to sort properly. This for some reason converts the FW to dollars. Not sure why.
Second, I want to setup a report that gives an employees name and then horizontally displays his spending for FW1, FW2, FW3, etc. up to FW52 then lists the next employee and does the same. I know I could just do a crosstab query but one it doesn't present it as a report, and two I need to select what shift of workers I want to draw from and crosstab queries don't allow user input.
Third, every worker doesnt buy something every week so for example WorkerA doesn't buy anything until week 11, I need every value up until week 11 to be blank or 0. The table I'm drawing from does not allow me insert 0's on weeks they don't purchase things so I have to have the report just understand that and correct for it.
I've tried using a format similar to the sample report Microsoft provides called "SalesAverage" but I can't seem to apply it to my work. Any suggestions or help are welcomed! Thanks.