Timesheet access Project

After reading some pieces about joins and others, I believe I understand there is something missing (a join) in my db, as you said.

Far from being an expert but seems like it is creating a "Cartesian product"... which causes the query to return unexpected results (too many records).

Answers I am finding on the web advise to create the joins between the tables, but I have only one table...? (see attached pic)

Does it mean I need somehow to create a second table? Sorry for the bad access language, I am all new to this.

Thank you,
Aucho22
 

Attachments

  • Access3.PNG
    Access3.PNG
    18.8 KB · Views: 80
Last edited:
Hmm, okay can you upload your database? Strip out the information, I just need the queries and the one table. Beleive me, this is easier than all your reading implies, it's just unfamilar to you. :D
 
Here it is... Sorry for probably breaking some of the 10 commandments, this is actually the first one I do :)
 

Attachments

Had a look and will make the necessary changes to make this work. Going to take a little bit because I see you have Forms so please bear with me... I do have a day job! :D
 
Thank you so much GinaWhipp, I would try and do it myself if only I could understand what the core problem was :(

As you said, it is surely simple and I will probably learn some things from this first issue...
 
Hope you're reading...

Do Employees have more than one Role?
 
Tricky one!
They may endorse different roles during the week (ie D1:Supplyman D2:Area Leader).
My thought process was that they input one role per entry.
If your question is "Can they have two different roles at the same Date/Time", then no, they cannot.
 
Nope, my question was as I posted, just fixing the Tables but that additional information you supplied...

They may endorse different roles during the week (ie D1:Supplyman D2:Area Leader).
...is helpful to how to set up the Tables.
 
Alright :o

You did mention some days ago that the problem came from my tables...
 
Update! Tables done now moving on to Forms which will also adjust the queries. :D
 
Cant wait to see what was wrong in my table design :D
 
Okay, here we go. Have a look at *qxtbEmployeeHours* and tell me if this is what you want.
 

Attachments

Wow, it definitely looks more like what I intended to do at first, thank you :D

Only thing, when creating the report I wanted the user to be able to enter the date range he/she wanted the report for. I thought I would just need to add a criteria in the query for WorkDate: Between [What date?] And [What date?], but it is not working, maybe because this field is an expression WorkDate: Format([tsDate];"m/j/aaaa") ?

Otherwise, it seems perfect, I just need to get my head around the new tables there are and their interaction with the queries...but that's my beginner brain. :)
 
So you want the crosstab query to feed a report that allows parameters?

EDIT: And you're welcome!
 
Yes for this query "qxtbEmployeeHours", I will eventually create a report (the user will have to choose the date range)...

I noticed this query was more of a matrix, so not sure if it is possible?
 

Users who are viewing this thread

Back
Top Bottom