Correct Syntax To Change Form Property

crhodus

Registered User.
Local time
Today, 06:32
Joined
Mar 16, 2001
Messages
257
I'm trying to write a function that will turn a form's visible property to false, but I haven't had any luck finding an example.

I know this is wrong, but here is what I have so far:

Private Sub Command5_Click()
Me.frmLastUpdated.Visible = False
End Sub

Can anyone help me out?

Thanks!

BTW can anyone recomend a good VBA book to purchase?
 
First of all you cannot make a form invisible, you can hide,minimize or close it to open another form but not make it invisible.
Second, i am not sure what are you tring to do, what is frmLastUpdated, is this a control within a form?
 
frmLastExported is the name of my form.

What I am trying to do is to make my form go away and then reapear after the data that I am importing has been processed.(I don't want to close my form, if at all possible)

If I can't make the form invisible, then will the hide property that you stated do what I want to achieve?

[This message has been edited by crhodus (edited 06-26-2001).]
 
Forms!YourFormName.Visible=False or Forms!YourFormName.Visible=True if you want to reverse it.
HTH
 

Users who are viewing this thread

Back
Top Bottom