[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

simple question

Posted on 2004-11-26
1
Medium Priority
?
223 Views
Last Modified: 2012-08-14
this must be some basic mistake i am doin but i am new to VB..

i have a combo box 'name'  on my form.
i also have a options 'checkbox' control array.

a(0)
a(1)
a(2)


i am seeting name.locked =true when the form loads.

when user a(0) options box is clicked i want the combobox to be unlocked
so i wrote


Private Sub a_Click(Index As Integer)
If a(0).Value = True Then name.Locked = False
End Sub

but this is givinfg me a syntax error

use of invalid quantifier for the use of name in name.locked


what am i doing wrong here?

how to disable A COMBO BOX and enable it programmatically?

thanks


0
Comment
Question by:Vlearns
1 Comment
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 12683362
I believe "name" is a reserved word in VB, try renaming the control to cboName instead.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month17 days, 21 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question