Results 1 to 5 of 5
  1. #1
    7201aks is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    8

    In Form data is reflecting but not getting stored in table


    I have created a form to convert Hex to Dec
    I have created control source as

    =HexToDec([Hexadecimal Number])

    for the Dec number, now the issue is in respective table Hex data is getting saved but in Decimal data field nothing is stored.

    Please HELP!!!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Why save? The value can be calculated whenever needed. Saving calculated data requires code (macro or VBA) in some event.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    7201aks is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    8
    can you help me?

    I want to show the Decimal number on form and want to store the same in table

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Saving calculated data is usually not justified. The raw and calculated data can get 'out of sync'. A simple calc like this can be done when needed. However, if you insist, code in the Hex textbox AfterUpdate event can be like:

    Me!Dec = Me.tbxDec

    or

    Me!Dec = HexToDec([Hexadecimal Number])


    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    7201aks is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2015
    Posts
    8
    Thanks!!
    Working now..

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

Similar Threads

  1. Replies: 9
    Last Post: 02-16-2015, 05:54 PM
  2. Replies: 0
    Last Post: 12-03-2014, 11:53 AM
  3. Replies: 1
    Last Post: 08-05-2014, 03:36 AM
  4. Replies: 1
    Last Post: 11-15-2012, 09:16 AM
  5. List box not reflecting change on a form
    By vladimir.tz in forum Forms
    Replies: 7
    Last Post: 05-06-2010, 03:37 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