VBA experiment

G

Guest

Hi,
I'm brand new to VB and just learning.
I have a Command button procedure as follows ( I did not indent because I
didn't know how the text formatting would show up here on the web site):
Private Sub CmdNew_Click()
On Error GoTo Err_CmdNew_Click

DoCmd.GoToRecord , , acNewRec

Exit_CmdNew_Click:
Exit Sub

Err_CmdNew_Click:
MsgBox Err.Description
Resume Exit_CmdNew_Click

End Sub

This procedure starts a new record on a data entry form.
I'm trying to insert:
Label5.IsVisible=False
in this same click event, but it won't work.

If anybody can set me on the right path so I can study this more, I'd really
appreciate it.
I'm brand new and just learning about properties, methods, actions etc.
Thank you in advance, and everyone have a nice weekend.
Amy
 
B

Brendan Reynolds

A label control doesn't have an IsVisible property, it has a Visible
property. If you change that line to Label5.Visible = False it should work.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
G

Guest

Thank you for taking time to help me.
I don't know where I came up with the " Isvisible " wording. I have to go
back to my books.

Thanx again,
Amy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top