More than one table in one form

woeter
woeter Member Posts: 11
hello,

I want to use two tables in one form. The tables are tblUser and tblFile.
I want to show all the fields from tblUser (name, address, age,...) and some fields from tblFile (status, ID,...). The tables are related. The PK from tblUser is Nr and the FK in tblFile is user_ID. How can i show this in one form??

thx

Comments

  • Waldo
    Waldo Member Posts: 3,412
    You can:
    - use a subform
    - extra textboxes in you tablebox, filling the data in code (OnAfterGetRecord)
    - use flowfields

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • woeter
    woeter Member Posts: 11
    Which code should i fill in, in the onAfterGetRecord?
    Could you give me an example?
    Thx
  • kriki
    kriki Member, Moderator Posts: 9,135
    Check also Form on two tables
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!