How to rename rectangle shape in a FORM (1 Viewer)

SachAccess

Active member
Local time
Today, 15:10
Joined
Nov 22, 2021
Messages
389
Hi,

I have added a ‘Rectangle’ shape in my FORM and have assigned a macro to this shape.
This part is working fine, however I am not able to rename the shape, I tried playing with properties but was un-successful.
At present the Form just reflects the shape but without any text.

Can anyone please help me this. Thanks.
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 09:40
Joined
Jul 9, 2003
Messages
16,224
I tried playing with properties but was un-successful.

Open the controls property sheet, select the "Other" tab and the top one is "Name" change the name there.
.
..
.
PropertySheet_1a.jpg
 

Gasman

Enthusiastic Amateur
Local time
Today, 09:40
Joined
Sep 21, 2011
Messages
13,964
You rename it in exactly the same way you rename any other object on a form?
Your forms should hold meaningful names not Command26 Command27, text1 etc :(
 

SachAccess

Active member
Local time
Today, 15:10
Joined
Nov 22, 2021
Messages
389
You rename it in exactly the same way you rename any other object on a form?
Your forms should hold meaningful names not Command26 Command27, text1 etc :(
Hi @Gasman thanks a lot for the help. I agree with you, I tried naming it but somehow it is not working hence posted question to know what mistake am doing. I changed shape fill color too 2,3 times just to check.
Will re-try by adding new shape.

Have a nice day ahead. :)
 

Minty

AWF VIP
Local time
Today, 09:40
Joined
Jul 26, 2013
Messages
10,346
A rectangle doesn't have any text property.
I think you would need a label and adjust its caption property to make a rectangle with text.

You then mention a Button - a command button does have a Caption property?
Which is it?
 

SachAccess

Active member
Local time
Today, 15:10
Joined
Nov 22, 2021
Messages
389
Hi @Minty sir, you are correct. I was using rectangle object.
Before posting my original question, I tried using 'Button' but was not able to 'Code Buidler' hence I decided to go ahead with Shape.

Now when I am posting this I realized my mistake, am able to write a code for Button now (able to rename it as well).
Thanks a lot for the help. Have a nice day ahead. :)

Hi @Gasman sir and @Uncle Gizmo sorry for confusing question, thanks a lot for the help. Issue is resolved now.
 

Users who are viewing this thread

Top Bottom