Hi ALL,
I'm trying to run this query using command button to update my table using the supplied field value and calculated values on my main table, but it seems there's a problem on running this script. It gave me "Compile Error - Invalid use of property" on Set cs_datefrom line. cs_datefrom is Date/Time data type on my table and I used date formatting but still giving the same error. Is there a missing on my query?
strSQL = "UPDATE tab_Summary "
Set cs_datefrom = "'" & Me.[Smdr Qry_Total_Direct subform1].Form!Format([Text2], "mm/dd/yyyy") & "'," & _
in_int_ext = "'" & Me.[Smdr Qry_Total_Direct subform1].Form![Text2] & "' & "
in_ext_caller = "'" & Me.[Smdr Qry_Total_Queue subform].Form![Text2] & "');"
WHERE pc_extNno = Me.Text353
DoCmd.RunSQL strSQL
Please i need your help.
Thanks and more power to all.
Regards,
Jerry
I'm trying to run this query using command button to update my table using the supplied field value and calculated values on my main table, but it seems there's a problem on running this script. It gave me "Compile Error - Invalid use of property" on Set cs_datefrom line. cs_datefrom is Date/Time data type on my table and I used date formatting but still giving the same error. Is there a missing on my query?
strSQL = "UPDATE tab_Summary "
Set cs_datefrom = "'" & Me.[Smdr Qry_Total_Direct subform1].Form!Format([Text2], "mm/dd/yyyy") & "'," & _
in_int_ext = "'" & Me.[Smdr Qry_Total_Direct subform1].Form![Text2] & "' & "
in_ext_caller = "'" & Me.[Smdr Qry_Total_Queue subform].Form![Text2] & "');"
WHERE pc_extNno = Me.Text353
DoCmd.RunSQL strSQL
Please i need your help.
Thanks and more power to all.
Regards,
Jerry