Results 1 to 3 of 3
  1. #1
    mrmims is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    53

    Text Box options?

    Hello,

    I have a two text boxes.



    1st (SystemSWLkg) is bound to SystemSWL in tbl_Axes. It is the Safe Working Load of a piece of equipment in kilograms.
    2nd (SystemSWLlbs) is an unbound box doing some maths to just display the SWL in pounds.

    Half of my crew thinks in kg and the other half thinks in lbs. Currently, we are only able enter data into SystemSWL in kg because the SystemSWLlbs is only for maths.

    How do I make it so data can be entered into both boxes, displayed with the proper conversions, and stored in my table as kilograms if entered as pounds?

    Thank you for your help!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    You can have code in the after update event of both, each updating the other appropriately. Only the kilogram box would be bound.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by pbaldy View Post
    You can have code in the after update event of both, each updating the other appropriately. Only the kilogram box would be bound.
    And so that the Unbound 'pounds' Textbox will be correct, when moving from Record-to-Record, you'll need to do the conversion math (from the 'kilos' Textbox AfterUpdate event) for it in the Form_Current event, as well.

    Also note that this approach will only work if this is a Single View Form.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Combo Box Options
    By AnnWalls in forum Access
    Replies: 4
    Last Post: 05-06-2014, 06:06 PM
  2. Replies: 1
    Last Post: 11-27-2013, 11:46 AM
  3. yes or no options
    By madhu in forum Access
    Replies: 3
    Last Post: 04-18-2013, 07:31 AM
  4. Replies: 9
    Last Post: 05-29-2012, 11:03 AM
  5. Replies: 9
    Last Post: 11-23-2009, 09:20 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