Babycat
Member
- Local time
- Tomorrow, 01:06
- Joined
- Mar 31, 2020
- Messages
- 285
Hello Everyone,
My idea is making data-entry form which consists of a main form and subform for entering customer information as attached picture.
There are many type of customer, it is selected from combo-box.
For example, I am entering info of a customer which type A. I select type A from combo box, then set subform sourceobject to the form name: TypeA.
However, my first issue is that as soon as I click on any sub-form's control, the main form seems lost focus and it saves data (Customer name, ID, Type, photo...) immediately. Therefore, the Cancel button becomes useless, I could not cancel the operation since the data is already saved on table "Customer"
I have tried to unbound both main and subform, saving data manually in On_click_event_OK_button by using recordset method. But other issue is that recordset method is not working with attachment type (customer photo)
So, any idea to help me overcome this?
My actual project is with about 20 fields and 10 customer types.
Thank everyone!
My idea is making data-entry form which consists of a main form and subform for entering customer information as attached picture.
There are many type of customer, it is selected from combo-box.
For example, I am entering info of a customer which type A. I select type A from combo box, then set subform sourceobject to the form name: TypeA.
However, my first issue is that as soon as I click on any sub-form's control, the main form seems lost focus and it saves data (Customer name, ID, Type, photo...) immediately. Therefore, the Cancel button becomes useless, I could not cancel the operation since the data is already saved on table "Customer"
I have tried to unbound both main and subform, saving data manually in On_click_event_OK_button by using recordset method. But other issue is that recordset method is not working with attachment type (customer photo)
So, any idea to help me overcome this?
My actual project is with about 20 fields and 10 customer types.
Thank everyone!
Attachments
Last edited: