Results 1 to 4 of 4
  1. #1
    SunTop is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    93

    Purpose of the record source property of the form

    Hello Everyone
    What is the purpose of the record source property of the form ?


    We can define the data source for each control on the form independently from its record source. For example if we had a text box control we can define its control source even if that control source is not in the record source of the form and if we had a combo box we can define its control source and row source even if those fields are outside the record source of the form, so what is the purpose of the record source ?

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    form RecordSource property is to specify what dataset is going to be available for viewing/editing. It can be a table name or a SQL query. More: https://msdn.microsoft.com/en-us/lib.../ff821093.aspx

    Same for reports, but of course view only.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    And you can not set the control source of a textbox to a field that is not included the record source. For example, if the record source is table A, you can't set the control source to a field in table B.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    SunTop is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    93
    thanks jwhite, pbaldy for your replay,

    now it makes sense

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-20-2015, 10:19 PM
  2. Replies: 3
    Last Post: 12-08-2014, 05:35 PM
  3. Computer accessories record purpose
    By titas in forum Access
    Replies: 2
    Last Post: 01-18-2014, 06:36 AM
  4. Column Control Source Property
    By rts in forum Reports
    Replies: 6
    Last Post: 05-17-2012, 06:42 PM
  5. SQL vs. vba Row Source property
    By eww in forum Programming
    Replies: 7
    Last Post: 10-15-2010, 11:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums