Hi all,
how can I control the showing up of query value after I click my command button, I supposed to get only the value of my query to be store in my sub form "Smdr Qry_Total_Direct subform1", but using the DoCmd.OpenQuery I cant stop showing the window for the query details. Do I need to rephrase the DoCmd, Please need your help.
I just want to see the value of my query on my subform, I dont want to see the details of my query.
On Error GoTo Err_RnRfrshQry_Click
Dim stDocName As String
stDocName = "Smdr Qry_Total_Direct"
DoCmd.SetWarnings False
DoCmd.OpenQuery stDocName, acNormal, acReadOnly
[Smdr Qry_Total_Direct Subform1].Form.Requery
DoCmd.SetWarnings True
Exit_RnRfrshQry_Click:
Exit Sub
Err_RnRfrshQry_Click:
MsgBox Err.Description
Resume Exit_RnRfrshQry_Click
************
Thank you and more power to all.
Regards,
Jerry
how can I control the showing up of query value after I click my command button, I supposed to get only the value of my query to be store in my sub form "Smdr Qry_Total_Direct subform1", but using the DoCmd.OpenQuery I cant stop showing the window for the query details. Do I need to rephrase the DoCmd, Please need your help.
I just want to see the value of my query on my subform, I dont want to see the details of my query.
On Error GoTo Err_RnRfrshQry_Click
Dim stDocName As String
stDocName = "Smdr Qry_Total_Direct"
DoCmd.SetWarnings False
DoCmd.OpenQuery stDocName, acNormal, acReadOnly
[Smdr Qry_Total_Direct Subform1].Form.Requery
DoCmd.SetWarnings True
Exit_RnRfrshQry_Click:
Exit Sub
Err_RnRfrshQry_Click:
MsgBox Err.Description
Resume Exit_RnRfrshQry_Click
************
Thank you and more power to all.
Regards,
Jerry