Solved

commandButton Index

Posted on 2009-07-09
2
528 Views
Last Modified: 2013-11-25
Is it possible to change the index of command button?

My code below will display the value of index in textbox as text1.text
I have four(4) button Command1(0), Command(1), Command(2), and Command(1)
I want to change the index of its commandbutton once the sstab1 has been dblclick
and will change to 50,51,51,and 52 which 0,1,2,3 as their original index.
Is it possoble? thanks!
Private Sub Command1_Click(Index As Integer)

Text1.Text = Index

End Sub
 

Private Sub SSTab1_DblClick()

Command1(0).Index = "50"

End Sub

Open in new window

0
Comment
Question by:Whing Dela Cruz
2 Comments
 
LVL 2

Accepted Solution

by:
lppperes earned 500 total points
ID: 24820370
You can´t do that. The property Index is read-only at runtime.
0
 

Author Closing Comment

by:Whing Dela Cruz
ID: 31601942
Thanks for the information
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now