ChangeRegister?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • reini

    ChangeRegister?

    hello,


    Private Sub Hide_ShowChange Register(val As Boolean)
    Me!ChangeRegist er.Visible = val
    Me!Save.Visible = val
    End Sub


    what does the line Me!ChangeRegist er.Visible = val do? i couldnt find
    any information about ChangeRegister in VBA??

    gretts
    reinhard
  • Stewart Allen

    #2
    Re: ChangeRegister?

    ChangeRegister is the name of a control on your form, that's why you
    couldn't find it in the help file. Whoever made the form named the controls
    on the form with the same names as the fields in the form's recordsource.

    What this sub does is displays the controls ChangeRegister and Save when the
    val = True and hides them when the val = False.

    "reini" <soibal@gmx.a t> wrote in message
    news:1437c2f.04 08060222.2ad96a be@posting.goog le.com...[color=blue]
    > hello,
    >
    >
    > Private Sub Hide_ShowChange Register(val As Boolean)
    > Me!ChangeRegist er.Visible = val
    > Me!Save.Visible = val
    > End Sub
    >
    >
    > what does the line Me!ChangeRegist er.Visible = val do? i couldnt find
    > any information about ChangeRegister in VBA??
    >
    > gretts
    > reinhard[/color]


    Comment

    • Bob Quintal

      #3
      Re: ChangeRegister?

      soibal@gmx.at (reini) wrote in
      news:1437c2f.04 08060222.2ad96a be@posting.goog le.com:
      [color=blue]
      > hello,
      >
      >
      > Private Sub Hide_ShowChange Register(val As Boolean)
      > Me!ChangeRegist er.Visible = val
      > Me!Save.Visible = val
      > End Sub
      >
      >
      > what does the line Me!ChangeRegist er.Visible = val do? i
      > couldnt find any information about ChangeRegister in VBA??
      >
      > gretts
      > reinhard
      >[/color]

      ChangeRegister is the name of a user defined control on the form in
      which your code is copied from. It may be a textbox, or more likely
      a listbox or subform. being user defined, it would not appear in
      VBA Help files.

      What it does is set the visible property of the control to yes or
      no, as determined by whether the call of the sub procedure includes
      yes or no, or synonyms true or false, -1 or 0.


      --
      Bob Quintal

      PA is y I've altered my email address.

      Comment

      Working...