Solved Help in compiling query (1 Viewer)

tihmir

Registered User.
Local time
Today, 09:57
Joined
May 1, 2018
Messages
257
Hi all. I need some help in compiling the following query.

I have two I have two tables - tblInspections, tblSampling and tblSampleType(with 3 fields - KD, PD, RD).
The tblInspections has fields: id, date, employeeName, inspectionType
The tblSampling has fields: id, sampleType, numbersOfSamle, inspection_id (foreign key)

In my query I want to be displayed: date, employee, inspectionType, and only the number of each sampleType.

If I write KD: Sum(IIf([sampleType] Like "KD*";1;Null)) it gave me how many sample of that type has,
but I need displayed for KD numbersOfSamle, for PD numbersOfSamle.
How can I do that?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:57
Joined
May 7, 2009
Messages
19,245
can you use Crosstab query?
 

tihmir

Registered User.
Local time
Today, 09:57
Joined
May 1, 2018
Messages
257
can you use Crosstab query?
I'm trying, I can't do the task. A little help please
 

Attachments

  • DB.accdb
    528 KB · Views: 80
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:57
Joined
May 7, 2009
Messages
19,245
see query1 (crosstab query).
 

Attachments

  • DB (1).accdb
    528 KB · Views: 74

Users who are viewing this thread

Top Bottom