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 / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Continuous subform inserting data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RGillfillan - 29 Apr 2005 22:33 GMT
On a form, I have a subform setup as a continuous form.  The continuous
subform is displaying two fields of a five field table.  The three fields not
being displayed are parts of the key and the user does not need to see these.

The driving form builds a select for the subforms recordsource  And this
works fine.  But when the user enters additional data on the subform and the
records are inserted into the table, only the two fields on the subform
contain data.  The three key fields are blank.

I know I can update the key fields after the fact with an update statement
but, is there a way to set the key fields so when a record is inserted, all
of the fields are loaded?  I was kind of hoping the values would be picked up
off the where clause in the select but this does not seem to be the case.

Any help would be greatly appreciated.
Rick Brandt - 29 Apr 2005 22:36 GMT
> On a form, I have a subform setup as a continuous form.  The
> continuous subform is displaying two fields of a five field table.
[quoted text clipped - 13 lines]
>
> Any help would be greatly appreciated.

You need to set the MasterLink and ChildLink properties of the subform
control and then Access will automatcially "push" the key fields from the
parent record into any subform records you create.

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

 
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.