Results 1 to 6 of 6
  1. #1
    TWD48 is offline Novice
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    8

    How Can I find the Record Source for a Field on a Form?

    Hi all,

    I'm trying to break down an Access form that was designed by a previous employee. The form has several calculated fields and I need to figure out what parameters they are using to do the calculation. When I go to the properties, I can't tell which table or query they are using for the field. The control source is only giving me the field name. The database has hundreds of queries and looks like a query was used as the record source since the master table does not have any fields storing these values.

    How can I trace the field back to the query it is using?

  2. #2
    usfarang is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2021
    Posts
    42
    Most likely those fields are aliases. They would come from the query if they are indeed calculated. Have you check to see if their are any form calculations?
    Since calculations are normally done via the query and not on the form itself although it's not always he case.
    Check and report back what you find. here are a couple of screenshots.
    hth
    Attached Thumbnails Attached Thumbnails FieldRecordSource.png   RecordSource.png  
    Last edited by usfarang; 03-04-2022 at 10:33 AM. Reason: Screenshots

  3. #3
    TWD48 is offline Novice
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    8
    Thanks you, I looked again and I'm not finding any calculations. When I click on Expression Builder, it only shows the field name. Count in this example

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    The recordsource for the form is here:
    It can be a table, query or sql string.

    Click image for larger version. 

Name:	recsrc.png 
Views:	17 
Size:	10.3 KB 
ID:	47377

    However, a form can change its own recordsource. Search for .recordsource in the form's code module for this possibility.
    A form's current event is also a common place to calculate values for textboxes on the form.
    Last edited by davegri; 03-04-2022 at 12:11 PM. Reason: edit

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Might be able to figure out if you post the expression for the calculated control. Just so we're all on the same page, a textbox (if that's what this is) has a controlsource property, not a recordsource, which is what I think your thread title is implying. The form it is on indicates the recordsource for the form and the controlsource for bound textboxes points to the field in that recordsource (table, sql statement or query). However, a calculated field cannot be bound, so there's no link between it and that table/query (i.e. it cannot be bound). That info is somewhere in the expression that performs the calculation, unless it's something like the sum of fields on the form/report. Likely that the expression contains the name of a table or query that is the basis for the calculation, unless as I've noted, it's simply a sum/addition using form fields.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    Join Date
    Apr 2017
    Posts
    1,792
    You have to check the form's Recordsource (activate form, and then properties). This may be either a table, a saved query, or a query defined directly in form's Recordsource. And then you can find out, which fields are present in Recordsource, either by reading recordsource query, or opening table/saved query. I'm sure there will be present a field HolPay.

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

Similar Threads

  1. Replies: 6
    Last Post: 11-19-2017, 04:51 PM
  2. Replies: 4
    Last Post: 09-08-2016, 06:35 AM
  3. Replies: 4
    Last Post: 01-13-2016, 02:04 PM
  4. Replies: 5
    Last Post: 11-12-2013, 12:14 AM
  5. Replies: 2
    Last Post: 06-05-2012, 12:33 PM

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