I need to select count of a column and display it on a subform.To count the column, I need to pass a parameter from a form. How can I capture the parameter form and display it on the subform?All this is in MS ACCESS 2007.
the query is:
"frmparts" is the form
the query is written for a textbox in the subform "frmsparepartsl ist"
The parameter comes from a label.
Is the above query incorrect?Pleas e suggest some idea anyone..
This query runs fine in the sql editor when i give direct value of the parameter.
the query is:
Code:
select count(tblequipmentbase.id) from (tblequipmentbase inner join tblequipmentparts on tblequipmentbase.id=tblequipmentparts.idconnect) inner join tblparts on tblequipmentparts.idpart=tblparts.id where tblparts.id=Forms!frmparts!ID
the query is written for a textbox in the subform "frmsparepartsl ist"
The parameter comes from a label.
Is the above query incorrect?Pleas e suggest some idea anyone..
This query runs fine in the sql editor when i give direct value of the parameter.
Comment