Allan,
Data Entry is a form property, not a control property. From your code, it looks like "EditJournalFrm" is your form. On this form, you have controls named DocDate, KdVoucher, To, From, HeaderNote, InternalReff, Source, Posted, and EditJournalDetail. You've locked each of those controls. Am I right so far?
Then you try to set the DataEntry property to False. The problem is, a control doesn't have this property. You can set the DataEntry property of the form to False, but not an individual control.
If you want to prevent data entry in that particular control, try the Enable property.
Also, here's a tip that comes from my bitter experience. Always avoid using Access Reserved Words in naming your fields, controls, forms, etc. It will help preserve your sanity during troubleshooting. Believe me. :banghead:
("TO" and "FROM" are reserved words.) It's okay to use them as part of a name, like To_Date or FromDt. Here's a list:
http://office.microsoft.com/en-us/a...rved-words-and-symbols-HA010030643.aspx?CTT=1