Results 1 to 5 of 5
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Records Source for frmPersoonel

    In the file db that I have attached this was saved on 4/4/2017. It this db was created before I started renaming tables this db mostly works.



    My new db based on this db with tables renamed to remove spaces fails on fmrPersonnel.


    My question is on:

    fmrPersonnel

    what is the record source? I have not seen such a definition of the record source before. The db works.

    This part of db was not written by me. it was written by someone else. I need to understand the record source it is:

    SELECT qryPersonnel.* FROM qryPersonnel;

    unlike the other files.

    This is not listed in the navigation pane as a query. So what is it?

    Any help appreciated. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Check to see if that is actually a table, sometimes folks name tables are queries and vice versa.

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I checked tables in Navigation pane; it is not there. I copied the query dialogue/name from the old db to the new db and it failed.

    I cannot understand why it works in old db and fails in new. It just seems to be an odd definition.

    As I said I copied:

    SELECT qryPersonnel.* FROM qryPersonnel;


    from the old to the new and nothing worked. If you look at the query qryPersonnel it is quite simple.

    I just need some to explain what is going on here. This should work.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed
    Last edited by Lou_Reed; 04-06-2017 at 10:46 AM. Reason: correction

  4. #4
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Lou I've just looked in the pane and I can see the qry in question.

  5. #5
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    this

    SELECT qryPersonnel.* FROM qryPersonnel

    is SQL i.e. a query which is selecting everything from an object called qryPersonnel - which in this case is a query and is in the db's included in your attachment.

    form/report recordsources do not have to be a table or query, they can also be a sql statement such as this - often used to order or filter data specifically for this form rather than using a separate query

    In this case a recordsource of

    qryPersonnel

    would work just as well

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

Similar Threads

  1. Replies: 4
    Last Post: 09-08-2016, 06:35 AM
  2. Replies: 3
    Last Post: 04-27-2016, 01:25 PM
  3. Replies: 1
    Last Post: 11-28-2013, 10:03 PM
  4. form returns records not in record source
    By aussie92 in forum Forms
    Replies: 2
    Last Post: 01-14-2013, 11:23 AM
  5. Multiple source records for the Form
    By spellbound in forum Forms
    Replies: 1
    Last Post: 12-28-2011, 10:48 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