I am trying to use the code below to open a Recordset yet I get an error “ No value given for one or more of the parameters”
rstScopeQuery.Open "SELECT [line_data_id],[section_id], [chk_status] " & _
"FROM section_detail WHERE (((section_id) = [Forms]![frmJob_section]![section_id]));", _
cnnLocal, adOpenDynamic
If I change the [Forms]![frmJob_section]![section_id] segment to just a number (say 288) the code work fine, but for some reason it will not go with the form info. I have confirmed with a mouse roll over that the value of [Forms]![frmJob_section]![section_id])) is set to 288 (at run time)with a break point, yet I still have the error.
Any Ideas ? ? ?
rstScopeQuery.Open "SELECT [line_data_id],[section_id], [chk_status] " & _
"FROM section_detail WHERE (((section_id) = [Forms]![frmJob_section]![section_id]));", _
cnnLocal, adOpenDynamic
If I change the [Forms]![frmJob_section]![section_id] segment to just a number (say 288) the code work fine, but for some reason it will not go with the form info. I have confirmed with a mouse roll over that the value of [Forms]![frmJob_section]![section_id])) is set to 288 (at run time)with a break point, yet I still have the error.
Any Ideas ? ? ?