Results 1 to 2 of 2
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Repaint or Refresh a form

    When a field gets the focus, if the field value is null, I'd like to set the field visible to false, and refresh the form with this field not being displayed. The field name is "Type." This is the code I have entered in the On Got Focus Event:

    If Me.TYPE.Value = Null Then

    Me.TYPE.Visible = False


    Me.Repaint
    End If

    I've tried both refresh and repaint, and neither works for me.

    Is what I'm trying to do possible? Thanks in advance

  2. #2
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    I should have used this code fo the if statement

    If is null(me.Type) then

    End if

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

Similar Threads

  1. Replies: 5
    Last Post: 08-07-2012, 11:31 AM
  2. Access 2010 Refresh VS Refresh ALL
    By Snwboarder1982 in forum Access
    Replies: 1
    Last Post: 09-09-2011, 04:07 PM
  3. Refresh Form
    By tpcervelo in forum Forms
    Replies: 7
    Last Post: 02-07-2011, 08:03 AM
  4. Replies: 4
    Last Post: 12-16-2010, 03:50 PM
  5. forms![FormName].repaint ?
    By markjkubicki in forum Programming
    Replies: 2
    Last Post: 09-24-2010, 01:27 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