1
我在表單上有一些VBA代碼,用於執行查詢中錯誤總數的查找。如果爲零,則顯示零
Private Sub cboProjectID_Change()
Dim VarTotalErrors As Variant
VarTotalErrors = DLookup("[total errors]", "[Project_Total_Errors_Query]", "[Project_ID] = " & VarComboKey)
Me.txttotalerrors = VarTotalErrors
End Sub
當total_errors爲空時,我需要添加到此VBA代碼中以自動填充零值的條件是什麼?