Results 1 to 4 of 4
  1. #1
    Patience is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2010
    Posts
    52

    Hide and show tekstbox

    Hi,



    I would like a particular textbox to only be visible, when a new record is being filled out - before the record is saved.

    So when existing records are shown in the form, this textbox is invisible.

    How can this be done?

    Thank you very much!

  2. #2
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    You can try doing something like this on the form's current event.

    Code:
    Dim intNewRecord As Integer
    'Check to determine if new record
    
    intNewRecord = IsNull(Me![ID])
    If intNewRecord Then
        Me!MyField.Visible=False
    Else
        Me!MyField.Visible=True
    End If

  3. #3
    Patience is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2010
    Posts
    52
    Works perfect!

    Thank you very much.

  4. #4
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    Glad you got it working.

    Quote Originally Posted by Patience View Post
    Works perfect!

    Thank you very much.

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

Similar Threads

  1. Hide Access and show only my forms
    By mortenskipper in forum Access
    Replies: 8
    Last Post: 01-20-2016, 08:21 AM
  2. Hide all but forms
    By Bird_FAT in forum Programming
    Replies: 1
    Last Post: 05-25-2010, 02:40 PM
  3. Show/Hide Columns in a Query
    By SCFM in forum Access
    Replies: 1
    Last Post: 02-23-2010, 08:04 AM
  4. how to hide the fields in subform
    By tinytree in forum Forms
    Replies: 3
    Last Post: 05-01-2009, 07:56 AM
  5. Show Hide Subreport / acViewReport
    By BigBear in forum Reports
    Replies: 4
    Last Post: 03-30-2009, 06:07 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