I've created a form in Access for user to add in data. I've set the Property of DataEntry to yes. But when I open the form, the fields are pre-filled with the data of the first record. How can I make the fields to be blank?
Have you got some default values set for your fields? If so, they will appear in the new record. If you want them to be blank, you'll have to remove the default settings or write code on the ON Open event for the form to make them empty strings
I've checked the default value. The default value is not set. I've also tried adding the acFormAdd but the result is still the same. Before this, the form is working fine until I changed the table structure. The table is actually linked from SQL Server. If possible, I prefer not to do any coding in the form_load event to set all values to "".
& I can't use this DoCmd.GoToRecord, , acNewRec in form_load because my data is displayed as columnar, not tabular. That's why can't go to add new record.
button- go to first record
button-go to previous record
Number of Current Record
button-go to next record
button-goto Last record button-go to new record
Properties for the form:
Record Source....Tbl_Employee
Allow Filters........Yes
Allow Edits..........Yes
Allow Deletions...Yes
Allow Additions...Yes
Data Entry..........Yes
Recordset Type...Dynaset