Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi Everyone: When I run this cod

Status
Not open for further replies.

Talonjpc

Programmer
Jul 29, 2002
21
0
0
US
Hi Everyone:

When I run this code:

If SelectString = 3 Then Me!lblWebDeveloperRequired.Visible

I get the following error:
Run Time Error 438, Object doesn't support this property or method. If I go to debug the following is highlighted:
Me!lblWebDeveloperRequired.Visible

Basically I am trying to only display a label if a certain variable equals a certain number. But this doesn't appear to work. Can anyone help me?

Thanks,
Vinay
 
Hi,

The block style doesn't matter but it made it easier to read in this message <g> You are missing the assignmetn of TRUE to the visible property.

If SelectString = 3 Then
Me!lblWebDeveloperRequired.Visible
end if

should read

If SelectString = 3 Then
Me!lblWebDeveloperRequired.Visible = true
end if

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top