Results 1 to 5 of 5
  1. #1
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212

    How do unbound fields on a form or report work?

    Big Picture: I need a work-around that would allow me to collect data for which I do not have fields in a table.


    I collect data on a form, and produce a Report. I want to collect an extra row of data without adding fields to already existing tables. Can I do this using unbound fields on a form? Can I have an unbound field on a bound form or do I need an unbound sub-form to collect the extra data I need.

    Detail Picture: I have a row of data with fields 5a,5c, 5x, 5y,5b, 5s, 5o. which are fields in an already existing database.

    When a user has an additional row of data they would like to enter for which there are no existing data fields, I propose providing 2 extra rows using unbound fields.
    6a, 6c, 6x, 6y, 6b, 6s, 6o.
    7a, 7c, 7x, 7y, 7b, 7s, 7o.

    On the form, row 5 would be invisible, row 6 would be labelled row 5, and row 7 would be labelled row 6. These 2 unbound rows would be summed into row 5. On the form Row 5 would not be visible. Row 5 is used in totalling columns in the report. So totals would include the extra row 6 which holds unbound data.

    On the report, How would I reference/show row 6 and row 7 as they exist on the form?

    I acknowledge that this is a WORK-AROUND to meet my needs for a simple update process, and not the best design solution. Hope someone can help me understand the finer points of unbound fields.

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,511
    Wait what?!?!?!?

    To answer your question, to reference a field on a form it would be something like: Forms![YourformName]![YourFieldName]

    Unbound form or field means it is not tied to a table or field in a table. But you cannot collect data with it that will store data per individual records in your table. When you move to a new record on a form, the unbound field will keep whatever value it had unless you do something to it in one of the Events.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    It sounds like you are thinking about dynamically altering the structure of your table

    i.e.

    Code:
    tblMonthlySales
    Department  201701 
    Dept 1      5000
    Dept 2      6000
    
    becomes
    
    tblMonthlySales
    Department  201701  201702
    Dept 1      5000    6000
    Dept 2      6000    7000
    This is an extraordinarily bad idea, if you are thinking about doing this it screams that you do not have a normalized data structure and you should be addressing that, not how to add columns on the fly.

  4. #4
    Abacus1234 is offline Competent Performer
    Windows 8 Access 2013 32bit
    Join Date
    Nov 2011
    Posts
    212
    What I have got from this input, so far, is that I must have a table to store the "unbound" or additional data that I wish to collect. But it does not have to be an existing table which I am trying to avoid).

    So I am putting my two extra rows in a subform, linked to a new table containing just the 2 extra rows.

    Thanks for the help it is always clarifying to the problem.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Data is stored in Tables.
    Data from tables can be displayed/ entered into a table via a Form
    Data from tables can be manipulated/formatted and printed in a Report.

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

Similar Threads

  1. Replies: 1
    Last Post: 04-26-2016, 01:13 AM
  2. Replies: 9
    Last Post: 07-13-2015, 09:46 AM
  3. Populate Unbound Fields on Report
    By RyanP in forum Reports
    Replies: 6
    Last Post: 06-24-2015, 08:12 PM
  4. Replies: 9
    Last Post: 11-05-2014, 09:23 AM
  5. Replies: 8
    Last Post: 08-02-2012, 10:50 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