petebevans
New member
- Local time
- Today, 21:37
- Joined
- Jun 9, 2008
- Messages
- 9
I have designed a form to display patient treatment records. The main form has various fields which are not enabled to prevent data editing. An unbound combo box is used to select a patient to display. Both the main form and the sub form have the 'Data Entry' property set to 'No'.The main form is linked to a subform displayed within the main form which allows entry of treatment records. My problem is that although when the form opens, the combo box to select the patient is blank (ie before I select a record from the combo box), the rest of the main form and sub form is populated with the first patient's records from the underlying table. If I set the forms' Data Entry properties to 'Yes' the combo box no longer works when I select a patient to view. The combo box was generated using the wizard and selecting 'Find a record on my form based on the value I select in my combo box'. In short I want the Data Entry property set to 'Yes' to display a blank form on opening but at the same time to 'No' to allow the combo box to select a record. I am sure there must be some code I can insert somewhere to get the form to work but I haven't a clue as to what and where!