Results 1 to 3 of 3
  1. #1
    mmaule is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    May 2014

    display a message in a text box

    What am I doing wrong?
    I am trying to display a message in a text box.

    Dim TextBox1 As TextBox
    TextBox1.Text = "Generating SimCtrl Directive XML"

    but I get a "Object variable or With block variable not set" error.

  2. #2
    darshit_goswami is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    i m not getting what you r trying to achieve.

    but would highly recommend not to do dimming of textboxes.

    In case if you want to use a message in textbox you can try textbox1.value = " message " and associate it with the event.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    The Great Land
    Don't need to declare textbox object. Don't use Text property.

    Me.TextBox1 = "Generating SimCtrl Directive XML"
    How to attach file: 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. Display a temporary message
    By mmaule in forum Access
    Replies: 2
    Last Post: 02-16-2015, 02:41 PM
  2. Compare if duplicate and display message
    By chotroi in forum Access
    Replies: 7
    Last Post: 03-22-2014, 02:53 PM
  3. How to display message
    By Trojnfn in forum Access
    Replies: 5
    Last Post: 10-20-2011, 12:13 PM
  4. How to display a Message
    By seb in forum Queries
    Replies: 7
    Last Post: 05-27-2011, 11:33 AM
  5. Display a message for some time
    By wasim_sono in forum Programming
    Replies: 2
    Last Post: 03-05-2010, 11:11 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 - Senior Forums