Page 1 of 1

Button to create a sub-file

PostPosted: Thu Jul 12, 2012 10:12 am
by Jeepeehell22
Hi everybody!

supposing a database A, with fields Date and Time , and a parent link pointing a database B, with children link field and a "when created/now" Time field., and a calculated field (Time in B - Time in A= time)
what to put in an added button in the A database form so to
-create a new sub-file in Database B
- at the same time have the result of calculated field

(What use?, well having a road /waypoint checking, so the A database is for the journey and the B is for waypoints)

Thanx much

Re: Button to create a sub-file

PostPosted: Fri Jul 13, 2012 7:24 am
by Brian_Houghton

Thanks for posting. You can use relationships to establish a parent/child connection between records of two databases. Once set up, you can follow the relationship from the parent to the child by either pressing the label of the field or clicking the button associated with it if using custom forms. When in the child database, create a new record and you will see that the related field is populated with the value from the parent.