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 / August 2007

Tip: Looking for answers? Try searching our database.

Auto populate subfrom from main form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony - 03 Aug 2007 00:43 GMT
I have a main form that contains data that I need to be automatically populated into a subform. The formula I've tried is:

Private Sub JobNum_Enter()

   Me.OrderRelNum = Form.OrderJobLink_Frm.SalesOrderNum.Column(2)
   
End Sub

Me.OrderRelNum is located on the subform

SalesOrderNum.Column(2) is in the main form

I need the SalesOrderNum to be put into the OrderRelNum so I don't have to manually type it.

Any help is greatly appreciated!

Thanks,
Tony
John W. Vinson - 03 Aug 2007 01:53 GMT
>I need the SalesOrderNum to be put into the OrderRelNum so I don't have to manually type it.

Simply include OrderRelNum in the Master/Child Link Field. This can consist of
multiple fields separated by semicolons.

            John W. Vinson [MVP]
Tony - 03 Aug 2007 18:50 GMT
Thanks John - that did it.

Signature

Tony

>>I need the SalesOrderNum to be put into the OrderRelNum so I don't have to
>>manually type it.
[quoted text clipped - 4 lines]
>
>             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.