我有以下的MS Access 2003表:字段 'Invoice_Date' 不能修改
Invoice_Master
(
Invoice_Id Autonumber,
Customer_Id integer,
Invoice_Date Date/Time not null,
.
.
.
);
和下面的代碼(德爾福7)
procedure TfmInvoiceMaster.adoMasterEditNewRecord(DataSet: TDataSet);
begin
inherited;
adoMasterEditInvoice_Date.AsDateTime := Date;
end;
當我嘗試添加新記錄我結束有例外錯誤sys:
Field'Invoice_Date'can not be modified。
請
是其他字段可寫嗎? (也許整個數據集是隻讀的)。附: adoMasterEditNewRecord中的'inherited'調用是不尋常的 – mjn 2012-04-03 20:12:11