button to insert text (1 Viewer)

Pavczech

Registered User.
Local time
Today, 19:21
Joined
Jul 11, 2012
Messages
41
Hello
I have form with text box called "Month"
I have button "Jan";"Feb" etc.

I could do with when I press "Jan" button it will focuse on the "Month" textbox and enters text "January" in the text box.

This should be simple but I not able to figure it out

Thanks very much
 

bob fitz

AWF VIP
Local time
Today, 19:21
Joined
May 23, 2011
Messages
3,970
You could try using the code below
Code:
Me.Month.SetFocus
Me.Month = "January"
but using a combo box instead of a text box would save a lot of space on the form and you wouldn't need the code.
 

Pavczech

Registered User.
Local time
Today, 19:21
Joined
Jul 11, 2012
Messages
41
Great one
I know drop down would make it easy but It is for touch screen so probably easier to use my way.
Thanks
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom