![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I have a mainform and subform that both share the same table. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
For some reason my subform control will not accept focus when adding a New Record in the parent main form. The main form (single form) has a (continuous form) placed on it. The main form displays an individual sick leave occurrence, the subform is linked (parent/child) and displays all sick leave occurrences for that individual. This works fine. I need the ability to scroll through the subform to view all sick leave occurrences for any one individual that is being displayed on the main form. Again, this works fine. The problem is when a new record is being created, the subform no longer accepts focus for scrolling through the individuals past sick leave history. The link works, since the individuals records do show in the subform window, but I cannot get focus on the subform to scroll (ie by mouse or code), therefore I cannot view the individuals history when adding the new record. This occurs when a new record is created and becomes dirty. Is this normal behavior? If so, how do I accomplish my goal? Others have posted this problem, but no viable solution was posted! A button with a popup of the same subform works, but the same form embedded does not? Please, Any Suggestions! Greg Perhaps your definition of main/subform are incorrect. How can you link |
#6
| |||
| |||
|
|
Perhaps your definition of main/subform are incorrect. *How can you link a new record (parent) to a subform? *What's the subform to link to? *If you are adding a new record to the subform, maybe use unbound controls and then have a save button that write/saves a new sick record and then requery the subform when saved. Maybe what you need is a main form (employee) and then two subforms; subform 1 for the continuous and another for new....or detail.- Hide quoted text - - Show quoted text - |
#7
| |||
| |||
|
|
Thanks for your reply Salad. My subForm was placed on the Mainform, and its Only Purpose is to Display sick history. The subForm control for the subform links Child as EMPLOYEE.EMPID, and the Master as SICK.EMPID. |
|
This all seems to work OK, until I create a new record. Then I simply cannot use the scroll bar on the subform. I believe that I have linked the subform to the mainform. My MainForm is SICKREC and the subform is used to display the all the sickleave recs for the employee display on the main form. I really do not even care if the subform does not display the new/active record, I just need it to simply display the employees previous sick rec history. When I add a new record, it is taking place in the MainForm, the subform is just meant to display past history for the selected individual. Again, a button on the form can popup the very same subform during the new record, and it works (I can scroll). It is just a problem when imbedded on the form. Am I working against Access basic principle? Should the subform lose focus when a new record is being created in the main form? Thankyou Salad Perhaps your definition of main/subform are incorrect. How can you link a new record (parent) to a subform? What's the subform to link to? If you are adding a new record to the subform, maybe use unbound controls and then have a save button that write/saves a new sick record and then requery the subform when saved. Maybe what you need is a main form (employee) and then two subforms; subform 1 for the continuous and another for new....or detail.- Hide quoted text - - Show quoted text - |
#8
| |||
| |||
|
|
Thanks for your reply Salad. My subForm was placed on the Mainform, and its Only Purpose is to Display sick history. The subForm control for the subform links Child as EMPLOYEE.EMPID, and the Master as SICK.EMPID. This all seems to work OK, until I create a new record. Then I simply cannot use the scroll bar on the subform. I believe that I have linked the subform to the mainform. My MainForm is SICKREC and the subform is used to display the all the sickleave recs for the employee display on the main form. I really do not even care if the subform does not display the new/active record, I just need it to simply display the employees previous sick rec history. When I add a new record, it is taking place in the MainForm, the subform is just meant to display past history for the selected individual. Again, a button on the form can popup the very same subform during the new record, and it works (I can scroll). It is just a problem when imbedded on the form. Am I working against Access basic principle? *Should the subform lose focus when a new record is being created in the main form? Thankyou Salad Perhaps your definition of main/subform are incorrect. *How can you link a new record (parent) to a subform? *What's the subform to link to? *If you are adding a new record to the subform, maybe use unbound controls and then have a save button that write/saves a new sick record and then requery the subform when saved. Maybe what you need is a main form (employee) and then two subforms; subform 1 for the continuous and another for new....or detail.- Hide quoted text - - Show quoted text - |
#9
| |||
| |||
|
|
Thanks for your reply Salad. My subForm was placed on the Mainform, and its Only Purpose is to Display sick history. The subForm control for the subform links Child as EMPLOYEE.EMPID, and the Master as SICK.EMPID. |
#10
| |||
| |||
|
|
Thanks for your reply Salad. My subForm was placed on the Mainform, and its Only Purpose is to Display sick history. + |
|
Am I working against Access basic principle? Should the subform lose focus when a new record is being created in the main form? |
|
Thankyou Salad Perhaps your definition of main/subform are incorrect. *How can you lin k a new record (parent) to a subform? *What's the subform to link to? * If you are adding a new record to the subform, maybe use unbound controls and then have a save button that write/saves a new sick record and then requery the subform when saved. Maybe what you need is a main form (employee) and then two subforms; subform 1 for the continuous and another for new....or detail.- Hide quot ed text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |