Visible text

lead 27

Registered User.
Local time
Today, 01:12
Joined
Mar 24, 2007
Messages
147
Hi again

On my form I have a "last updated by" field which works fine, I have added a label to this field so it reads "this data was last updated by" then the "changed by" field

I want this to be where if the field is blank in the changed by the label is invisible I have used the code:

If Nz(Changed_By, "") = "" Then
Me.Label68.Visible = False
Else: Me.Label68.Visible = True
End If

The code works but I am not sure on which event to put it so that it will be invisible until someone updates that record.
 
Use the forms OnCurrent event, in the AfterUpdate event put
Call Form_Current
 
That works great thank you I would never have figured that out

Thanks
 
So that I am not just copying codes etc can anyone explain why the code works e.g. what the Nz( ) means and how it works with the on current and then after update events e.g what happens with call form_current?

Thanks
 
NZ and events can be found with Access Help

NZ does not change meanings from one event context to another. But its inputs might.
 

Users who are viewing this thread

Back
Top Bottom