G
Guest
Trying to use command button on main form
to update subform.
I get Syntax error (Missing operator) in query expression
DoCmd.SetWarnings False
strSql = "UPDATE RegSaleSelect SET TAX1_SALES = " &
Int(CDec(Me.txtSubTotal.Value + 0.005) * 100) / 100 _
& "WHERE TAX1_SALES > 0;"
DoCmd.RunSQL strSql
Me.Requery
DoCmd.SetWarnings True
to update subform.
I get Syntax error (Missing operator) in query expression
DoCmd.SetWarnings False
strSql = "UPDATE RegSaleSelect SET TAX1_SALES = " &
Int(CDec(Me.txtSubTotal.Value + 0.005) * 100) / 100 _
& "WHERE TAX1_SALES > 0;"
DoCmd.RunSQL strSql
Me.Requery
DoCmd.SetWarnings True