-2
問題: 我有un update更新查詢引用MS Access子窗體字段。該字段中有一個值,但Access仍然提示我輸入參數。我已經在語句中驗證了該字段的語法是正確的,並且查詢在我輸入參數時運行得很好,所以我知道我的查詢有效。問題是什麼?MS Access調用填充表單域時提示參數
代碼:
update t_cr_patient_admission_information
inner join t_cr_committee_apic
on t_cr_patient_admission_information.case_nbr = t_cr_committee_apic.case_nbr
set t_cr_patient_admission_information.physician_5 = IIf(physician_4 Is Not Null and physician_5 Is Null, t_cr_committee_apic.apic_md_for_review, physician_5),
t_cr_patient_admission_information.physician_4 = IIf(physician_3 Is Not Null and physician_4 Is Null, t_cr_committee_apic.apic_md_for_review, physician_4),
t_cr_patient_admission_information.physician_3 = IIf(physician_2 Is Not Null and physician_3 Is Null, t_cr_committee_apic.apic_md_for_review, physician_3),
t_cr_patient_admission_information.physician_2 = IIf(physician_1 Is Not Null and physician_2 Is Null, t_cr_committee_apic.apic_md_for_review, physician_2),
t_cr_patient_admission_information.physician_1 = IIf(physician_1 Is Null, apic_md_for_review, physician_1)
where [Forms]![frm_existing_case_lookup]![sub_frm_apic_update]![case_code_id] = t_cr_patient_admission_information.case_nbr and t_cr_committee_apic.apic_md_for_review Is Not Null;
哪個字段會提示您?通常,這意味着你拼錯了某些東西;所以它要求一個價值。 –
它提示我[形式]![frm_existing_case_lookup]![sub_frm_apic_update]![case_code_id]字段。正如我在說明中所述,我已驗證語法(form!subform!subformname)和拼寫,所以我知道它沒有拼寫錯誤。 –
您是否嘗試刪除第一個[Forms]並使用[frm_existing_case_lookup]![sub_frm_apic_update]![case_code_id]? –