Object visibility

pascaly

Registered User.
Local time
Tomorrow, 06:30
Joined
Jan 29, 2008
Messages
28
Hi all,

I have a form used for a couple of parameter qrys, what I'm trying to do, is hide some objects on the form, but on the On Click of a button, I'd like to make a few more objects visible via VBA.

I've tried;

me.txtDate visible = true
and
forms!frmReportParameters!txtDate visible = true

But when ever I run it, it comes back and tells me "Invalid use of property". Any help? I thought you could toggle the visibility property this way..?

Thanks all.
 
you need a period between txtDate and visible:

me.txtDate.visible = true
 
That's perfect! thanks so much Bob, I really appreciate your time. It works perfectly now, thanks.
 

Users who are viewing this thread

Back
Top Bottom