Results 1 to 2 of 2
  1. #1
    mike_980 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    58

    inputting a calculated value into a table

    I wasn't sure whether this should go into the queries or forms section sorry so I just put it here.

    I have a form where it is necessary for the user to input number of tanker loads, however I would ideally like the table to store the information in m3 which means multiplying whatever the user inputs by 11.3.

    My plan was to use an unbound textbox for the user to input the "number of loads" into, then use a query to calculate the value and then a Dlookup to update the value of a control which will be hidden somewhere on the form. I got as far as making the query however then realised that it won't let me add an unbound textbox to a query in order to form an expression. How would you go about this? I'd like to stay away from the inbuilt "calculated field" option just in case i need to downgrade to an earlier version than 2013 at some point.

  2. #2
    mike_980 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    58
    Solved!

    I used an unbound textbox and used the following code in after update:

    Me.Quantity_spread.Value = (Combo14.Value * 11.3)

    Works perfectly.

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

Similar Threads

  1. Limit on inputting records
    By IT_Charlies in forum Access
    Replies: 1
    Last Post: 01-15-2013, 05:24 PM
  2. Replies: 2
    Last Post: 10-24-2012, 02:53 PM
  3. Replies: 6
    Last Post: 12-14-2011, 07:19 PM
  4. Inputting Free text in Form
    By maintt in forum Forms
    Replies: 2
    Last Post: 08-13-2010, 11:43 AM
  5. Replies: 15
    Last Post: 02-16-2010, 10:58 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