Re: Display hidden field in a continuous form after update of a null m



If I'm following the logic of what your code is doing, the dtmComplete
control is set invisible when the form loads. Then, after the memo control
is updated (and ONLY after an update), if the memo field is null (are you
also testing for a zero-length string somewhere else?), set the dtmComplete
invisible, otherwise, set it visible.

To me this means the form will always start out with an invisible
dtmComplete, even if the record that is loaded has something in the memo
control.

If you want these things to change whenever the record changes, try the
OnCurrent event to re-evaluate the condition of the memo control.

By the way, having controls blink in and out of existence (i.e., visible)
can be disconcerting to users. Consider setting the enabled property
instead, so the control is grayed out or not.

--
Regards

Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Microsoft Registered Partner
https://partner.microsoft.com/

"mogll" <mogll@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1274EE75-A111-4E64-9BD9-91278A3129CC@xxxxxxxxxxxxxxxx
In a continuous form, I have fields memAction and dtmComplete. I do not
want
users to enter a completion date if the memAction field is null. So I want
the date field initially hidden for each record, then displayed
permanently
by record when the memo field is not null. I have tried the following
with
no luck:
Form On Load
Private Sub Form_Load()
Me.dtmComplete.Visible = False
End Sub

Memo field after update
Private Sub memAction_AfterUpdate()
If Me.memAction Is Null Then
Me.dtmComplete.Visible = False
Else
Me.dtmComplete.Visible = True
End If
End Sub

Help

.



Relevant Pages

  • Re: Help Authoring Software
    ... the "about" this application memo - no need to have this be a long book. ... These memos would be for each control. ... You thus edit the help text for the control. ... way ALL USERS of the system could in fact build the help file for you!!! ...
    (comp.databases.ms-access)
  • Re: Help Authoring Software
    ... Kind of the "about" this application memo - no need to have this be a long book. ... If this control des NOT have a memo, then the above form level memo would then be displayed. ... You then GET TO EDIT + ADD this form level memo. ... The above system would thus allow you to build a help file system on the fly or even have a "user" and non program person edit + create the help file by simply opening each form and moving into a control and then hitting f1 key. ...
    (comp.databases.ms-access)
  • Re: Help Authoring Software
    ... the "about" this application memo - no need to have this be a long book. ... These memos would be for each control. ... You thus edit the help text for the control. ... way ALL USERS of the system could in fact build the help file for you!!! ...
    (comp.databases.ms-access)
  • RE: Two questions (About Lookup and also Memo fields)
    ... but the beauty of it is that you're provided control ... code the wizard generates. ... tell it to hide the key field. ... >> you can use the AfterUpdate event of the memo field to ...
    (microsoft.public.access.forms)
  • Re: Determine "Height" of Memo Value
    ... be when displayed in a control. ... I have a purachse order report with a Notes memo at the ... The Report Footer? ...
    (microsoft.public.access.modulesdaovba)