dbTalk Databases Forums  

Design suggestions for a subform synchronization

comp.databases.ms-access comp.databases.ms-access


Discuss Design suggestions for a subform synchronization in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Greg (codepug@gmail.com)
 
Posts: n/a

Default Design suggestions for a subform synchronization - 01-24-2009 , 03:15 PM






What is the most sensible way of synchronizing a mainform with an
embedded subform.
The mainform will be used to create a new sickleave record and a
combobox will be used to select the employee for this record (EMPID).
I want the subform to display this employees sick leave history based
on the (EmpID). I tried this using child/parent linking of the subform
control, but when I am entering the new record in the mainform, I am
not able to scroll through the subform to check out the employees
history. The subform just does not accept focus from the mouse. In all
other cases, like editing, I can scroll no problem.

ANY Ideas ???

Thanks
Greg


Reply With Quote
  #2  
Old   
Larry Linson
 
Posts: n/a

Default Re: Design suggestions for a subform synchronization - 01-24-2009 , 10:02 PM






Using the main Form to enter data, and showing a summary in a Subform
Control is not, repeat not, a good use of Subform Controls. The best use of
Subform Controls is to show the many-side of a one-to-many related Table
with the one-side shown in the main Form.

A better approach might be to have the main Form, with the Subform Control
showing the sickleave record (using Employee ID as the Link Master and Link
Child Fields). Then enter the new data in a new record in the Subform, or,
have a second Subform Control with the embedded Form in Data Entry Mode for
entering the new Record.

Larry Linson
Microsoft Office Access MVP

<codepug (AT) gmail (DOT) com> wrote

Quote:
What is the most sensible way of synchronizing a mainform with an
embedded subform.
The mainform will be used to create a new sickleave record and a
combobox will be used to select the employee for this record (EMPID).
I want the subform to display this employees sick leave history based
on the (EmpID). I tried this using child/parent linking of the subform
control, but when I am entering the new record in the mainform, I am
not able to scroll through the subform to check out the employees
history. The subform just does not accept focus from the mouse. In all
other cases, like editing, I can scroll no problem.

ANY Ideas ???

Thanks
Greg




Reply With Quote
  #3  
Old   
robert.waters
 
Posts: n/a

Default Re: Design suggestions for a subform synchronization - 01-24-2009 , 10:17 PM



On Jan 24, 4:15*pm, "Greg (code... (AT) gmail (DOT) com)" <code... (AT) gmail (DOT) com>
wrote:
Quote:
What is the most sensible way of synchronizing a mainform with an
embedded subform.
The mainform will be used to create a new sickleave record and a
combobox will be used to select the employee for this record (EMPID).
I want the subform to display this employees sick leave history based
on the (EmpID). I tried this using child/parent linking of the subform
control, but when I am entering the new record in the mainform, I am
not able to scroll through the subform to check out the employees
history. The subform just does not accept focus from the mouse. In all
other cases, like editing, I can scroll no problem.

ANY Ideas ???

Thanks
Greg
If you save your record, it won't be dirty anymore:
DoCmd.RunCommand acCmdSaveRecord
or
If Me.Dirty Then Me.Dirty = False
Would save the new record, presumably changing the situation you
described in your other thread.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.