問題描述
(Microsoft Access) 如何輸入多個新記錄,其中 5 個字段中有 2 個被重置 ((Microsoft Access) How to Input multiple new records with 2 out of 5 fields from being reset)
我正在嘗試創建一個輸入表單以將新條目輸入到我的表中。基本上,我有一個包含 5 個字段的簡單表格。DATE, PERSON, Value x, Value y, Value z。
每次我輸入完一條新記錄,表格就會重置為空白。我真的需要日期和人員字段來保留以前的記錄值,所以我不必一次又一次地輸入它們。只重置 X,Y,Z 值。
請幫忙
參考解法
方法 1:
For the date field, use the AfterUpdate event of the form to set the DefaultValue property as a text expression of the date value:
Me![Date].DefaultValue = "#" & Format(Me![Date].Value, "yyyy\/mm\/dd hh\:nn\:ss") & "#"
Similar for the other fields.