Setvalue Access 2000

rbrule

Registered User.
Local time
Today, 17:19
Joined
Jan 13, 2004
Messages
108
Hello,
I have a report that shows dollar amounts for each month of the year. I want to make the month fields visible only when the field is not null. I understand that Access 2000 requires VBA code to setvalue, instead of a macro. I tried setting up a macro, but it did not work. I then converted the macro to VBA and it still did not work.

Perhaps I should start from scratch. Could someone give me a sample procedure for making my month fields visible only when the field is not null?

Thank you
Ron
 
Try something like this:

Code:
If IsNull(me.fieldname) Then
me.fieldname.visible = false
Else
me.fieldname.visible = true
End If

Andy
 
Thank you Andy, It worked perfectly.

rbrule
 

Users who are viewing this thread

Back
Top Bottom