Sniper-BoOyA-
Registered User.
- Local time
- Today, 10:23
- Joined
- Jun 15, 2010
- Messages
- 204
Good morning,
I am working on a database to determine the water-content of a specific sample. And the idea is to make a graph based on a query.
I actually have to make 2 graphs, one based on the NEN(RAW) rules / standards, and on based on the NEN-EN rules / standards.
The RAW graph works great, it does exactly what i want. And that is to show only one proctor, the proctor that has been linked to the sample.
I made a copy of the form and query, and edited the formulas, and the relationships of the tables.
But when i make a graph, i see all the proctors, instead of 1.
So looked into it some more, and it turns out that if i replace the new-made formula to determine the water-content, with the RAW version, it works perfect.
The NEN(RAW) formula is:
The new NEN-EN formula is :
Here's the full query of both graphs:
RAW:
NEN-EN:
Do you think it could be caused by a relation between the 2 tables in question? First i thought it was caused by the a missing "link" between the motherform and daughter form. But it turns out it is excactly the same. And like i mentioned before, once i replace the formule with the old one, it works perfectly.
Anyways, ive been busting my balls over this one for the past couple of weeks now, and i cant seem to figure this out.
- Ive started all over, in case i missed something in the buildup process.
- I checked the relationships with the RAW version.
- I converted the querie needed in the NEN-EN table into a make-table query, and tried to do it that way, unfortunately it didnt make any difference what so ever.
So ya, if anyone has an idea why that formule aint working, it would be much appreciated.
Cheers!
edit: ive attached 2 screenshots of the graphs, based on the queries above. As you can see graph2 has 13 points and its supposed to have 7.
Proctor 1 : 7 points
Proctor 2 : 6 points
I am working on a database to determine the water-content of a specific sample. And the idea is to make a graph based on a query.
I actually have to make 2 graphs, one based on the NEN(RAW) rules / standards, and on based on the NEN-EN rules / standards.
The RAW graph works great, it does exactly what i want. And that is to show only one proctor, the proctor that has been linked to the sample.
I made a copy of the form and query, and edited the formulas, and the relationships of the tables.
But when i make a graph, i see all the proctors, instead of 1.
So looked into it some more, and it turns out that if i replace the new-made formula to determine the water-content, with the RAW version, it works perfect.
The NEN(RAW) formula is:
Code:
watergehproct: IIf(IsNull([schaalnr]);[topwtrgeh];(([massaschlmonnat]-[massa3])/([massa3]-[massaschl]))*100)
The new NEN-EN formula is :
Code:
watergehproct: IIf([corrigeren]="Ja";(((([massaschlmonnat]-[massa3])/([massa3]-[massaschl]))*100)*(1-[massaststdrg]/tblproctorNEN!massamnstr))+([watergehstst]*([massaststdrg]/tblproctorNEN!massamnstr));(([massaschlmonnat]-[massa3])/([massa3]-[massaschl]))*100)
Here's the full query of both graphs:
RAW:
Code:
SELECT IIf(IsNull([schaalnr]),[topwtrgeh],(([massaschlmonnat]-[massa3])/([massa3]-[massaschl]))*100) AS watergehproct, IIf(IsNull([schaalnr]),[topdrgdichth],((([massacillmonnat]-[massaopv])*100000)/([inhpv]*(100+[watergehproct])))) AS drgdichtheidproct, tblproctor.proctorID
FROM (tblopvklei INNER JOIN tblproctor ON tblopvklei.opvnr = tblproctor.opvnr) INNER JOIN tblproctwtrgeh ON tblproctor.proctorID = tblproctwtrgeh.proctorID
ORDER BY tblproctor.proctorID;
NEN-EN:
Code:
SELECT IIf(IsNull([schaalnr]),[topwtrgeh],(([massaschlmonnat]-[massa3])/([massa3]-[massaschl]))*100) AS watergehproct, IIf([Corrigeren]="Ja",(((([massacillmonnat]-tblproctorNEN!massaopv)*100)/([inhpv]*(100+[watergehproct])))*(1-([massaststdrg]/tblproctorNEN!massamnstr)))+(0.9*[dchthdstst]*([massaststdrg]/tblproctorNEN!massamnstr)),(([massacillmonnat]-tblproctorNEN!massaopv)*100)/([inhpv]*(100+[watergehproct]))) AS drgdichtheidproct, tblproctorNEN.proctorID
FROM (queryprctrproefNEN RIGHT JOIN (tblproctorNEN INNER JOIN tblopvklei ON tblproctorNEN.opvnr = tblopvklei.opvnr) ON queryprctrproefNEN.proctorID = tblproctorNEN.proctorID) INNER JOIN tblproctwtrgeh ON tblproctorNEN.proctorID = tblproctwtrgeh.proctorID;
Do you think it could be caused by a relation between the 2 tables in question? First i thought it was caused by the a missing "link" between the motherform and daughter form. But it turns out it is excactly the same. And like i mentioned before, once i replace the formule with the old one, it works perfectly.
Anyways, ive been busting my balls over this one for the past couple of weeks now, and i cant seem to figure this out.
- Ive started all over, in case i missed something in the buildup process.
- I checked the relationships with the RAW version.
- I converted the querie needed in the NEN-EN table into a make-table query, and tried to do it that way, unfortunately it didnt make any difference what so ever.
So ya, if anyone has an idea why that formule aint working, it would be much appreciated.
Cheers!
edit: ive attached 2 screenshots of the graphs, based on the queries above. As you can see graph2 has 13 points and its supposed to have 7.
Proctor 1 : 7 points
Proctor 2 : 6 points