Results 1 to 4 of 4
  1. #1
    Rgaming is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2017
    Posts
    9

    Post If label blank then input value from another label

    I have a form of which I want it to automatically input a value into a label when it is blank.


    When I click on the add new customer button I need it to automatically take the value worked out and paste it into the customer ID label

    A video showing what I need: https://www.youtube.com/watch?v=RN04sZw64_I

    The primary ID label is called "Cusomter_ID"
    The value that I want to be copied has the label name "Next_Customer_ID"

    Any help would be much appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    YouTube video won't load for me.

    Don't really understand what you mean by 'label when it is blank'. Why would a label be blank? Is this really a textbox?
    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
    Rgaming is offline Novice
    Windows 10 Access 2007
    Join Date
    Oct 2017
    Posts
    9
    sorry, i meant text box.
    essentially I need a validation rule that checks if the text box is empty. If it is then empty I need it to display a value from another text box

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    If you want the box to be editable and bound to field then it cannot have an expression in ControlSource, only a field name.

    Why would a textbox need to show the same value of another textbox?

    Would require code (macro or VBA) in some event to set the value in textbox.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 04-25-2014, 11:41 AM
  2. Hide report label when text box is null/blank
    By crsport3 in forum Access
    Replies: 7
    Last Post: 10-30-2013, 07:14 AM
  3. Report Label
    By brandonze in forum Reports
    Replies: 1
    Last Post: 08-03-2011, 01:51 PM
  4. Replies: 5
    Last Post: 06-28-2011, 06:40 PM
  5. Label Help
    By rcotero in forum Access
    Replies: 2
    Last Post: 11-05-2010, 01:39 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