يا جماعة لدي مشكلة مع أمر SQL هذا:
qryUpdate.SQL.Text := 'update life_ageband set age_employee = ' + txtEmployee.Text + ', sum_insured = ' + txtSumInsured.Text + ', total_prem = ' + (qryAgeBand.FieldValues['prem_rate_per_1000'].AsDouble * StrToFloat(txtSumInsured.Text)) / 1000 + ' where quotation_guid = ' + QuotedStr(frmMain.lblGUID.Caption) + ' and age_description = ' + QuotedStr(qryAgeBand.FieldValues['age_description']);
البرنامج يعطيني الخطأ المرفق في الصورة.
باختصار ، أنا أريد أن أضيف القيم المذكورة مع إضافة قيمة حسابية من تلك القيم.