Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / March 2005

Tip: Looking for answers? Try searching our database.

general questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike B - 31 Mar 2005 20:37 GMT
I have 2 tables that are linked by an aiutoindex value as a key. I have
noticed that when entering data for a single table (and using the default
navigation buttions) acess seems to be good at saving your data even if the
form is partialy completed.

Whats the best way to add the record to the joined table (I would really
like that to happen when the record in the first table is created. Do the
navigation controls at the bottom of the form fire events in the same way
that command buttons do? Lastly (this may be related how do I keep the form
content's syncronized? Most of the data for form 1 comes from table A but
some comes from table B

thanks
Mike
John Vinson - 31 Mar 2005 22:45 GMT
>I have 2 tables that are linked by an aiutoindex value as a key. I have
>noticed that when entering data for a single table (and using the default
[quoted text clipped - 7 lines]
>content's syncronized? Most of the data for form 1 comes from table A but
>some comes from table B

Adding empty "placeholder" records to a related table is a VERY BAD
IDEA. They have a nasty way of never getting filled in.

I would suggest that you use a Form for the "one" side table, with a
Subform for the related table. Use the Autonumber field as the Master
Link Field, and the long integer field (*NOT* an autonumber, you can't
use an autonumber as a foreign key) in the related table as the Child
Link Field. Access will keep the records synchronized correctly.

The Current event fires when you use the nav buttons, if you need to
do something in code whenever you move to another record. However, no
code is needed if you're using the subform, Access takes care of it
for you.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.