Results 1 to 3 of 3
  1. #1
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    237

    Use value of a label on a form

    Hi,


    A label on a Form has a value of the format 1234-4567 (eight numbers separated by a -).
    I need to read the last four digits and use them as a number so I can add or subtract or it from other number.
    How can I do that ?

    Khalil

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Not heard of the Right() function? or the Val() functions.

    Labels do not have Values, but do have Captions BTW
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Khalil Handal is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    237
    Hi,
    Thank you very much.
    My issue was with the caption

    Khalil

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

Similar Threads

  1. Replies: 6
    Last Post: 10-10-2017, 03:01 AM
  2. Replies: 3
    Last Post: 10-08-2017, 12:53 PM
  3. Change Label on Form
    By jmitchelldueck in forum Programming
    Replies: 2
    Last Post: 08-24-2015, 07:28 AM
  4. Replies: 1
    Last Post: 04-25-2014, 11:41 AM
  5. Form label in a report
    By SFC in forum Reports
    Replies: 10
    Last Post: 10-27-2011, 05:42 PM

Tags for this Thread

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