Results 1 to 4 of 4
  1. #1
    zolazree is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2016
    Posts
    8

    How to Input Data in an Unbound Field in a Form to a Field in a Table?

    Can someone tell me how do I input data from an unbound field in a form (Red) into a field in a table (Blue)? Thanks!Click image for larger version. 

Name:	Form.PNG 
Views:	17 
Size:	17.6 KB 
ID:	26576Click image for larger version. 

Name:	Table.PNG 
Views:	17 
Size:	51.6 KB 
ID:	26577

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,458
    answer - you don't - you should not store calculated values in a table, instead use a group by query when you need to see the total

    Incidentally 'date' is a bad name to call a field - date is a reserved word, it is a function which returns todays date. Similarly Type is a reserved word, it is used all over access to identify objects of one sort or another. If you continue to use them as field (or control) names, at some point you will spend hours/days trying to resolve an inexplicable error. Strongly recommend you change them to something more meaningful like invDate and invType. If you want users to see 'Date' or 'Type', use the field caption property - that is what it is for

  3. #3
    zolazree is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2016
    Posts
    8

    Post

    Quote Originally Posted by Ajax View Post
    answer - you don't - you should not store calculated values in a table, instead use a group by query when you need to see the total

    Incidentally 'date' is a bad name to call a field - date is a reserved word, it is a function which returns todays date. Similarly Type is a reserved word, it is used all over access to identify objects of one sort or another. If you continue to use them as field (or control) names, at some point you will spend hours/days trying to resolve an inexplicable error. Strongly recommend you change them to something more meaningful like invDate and invType. If you want users to see 'Date' or 'Type', use the field caption property - that is what it is for
    Thanks Ajax for the tips on the field names. Didn't know that . So u're saying I shouldn't put the 'Total' field there on the table, and instead just take the sum from a query?Or is there a way that I can take the sum from that query and input it in a field in my table? I'm really a beginner at this. Thanks for helping out!

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,458
    FYI - a link to access reserved words https://support.office.com/en-us/art...7-da237c63eabe. Other tips include don't use spaces or non alphanumeric characters or start field or table names with numbers.

    Take the sum from a query - reason is that data can change - you add an additional line, you change the quantity or price. So if these change, you need to recalculate and update the table which is more work - and if there is a glitch, it doesn't get updated so now your total of the detail rows is incorrect.

    There are occasions where you store a value - in this case you should store the price, even if it is stored in a product table. The reason is if the price changes, your wouldn't want the invoice to change.

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

Similar Threads

  1. Replies: 2
    Last Post: 07-12-2016, 10:57 PM
  2. Replies: 5
    Last Post: 02-13-2015, 07:24 PM
  3. Replies: 5
    Last Post: 01-30-2015, 02:45 PM
  4. Replies: 2
    Last Post: 08-11-2014, 12:57 PM
  5. Replies: 5
    Last Post: 02-12-2014, 11:52 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