making buttons appear after fields have changed

S

smpil

hey,
anyone know how to make buttons appear on a form automatically as the
are entered into a field in a table.

the field represents projects.. and i need buttons to automatically b
placed on a form (spaced out correctly) as soon as the data is inputte
into the form.

many thanks!
stephe
 
P

Pavel Romashkin

Create the buttons in advance and make them Hidden. Then unhide them in
AfterUpdate event of the field that is supposed to show the buttons.

Pavel
 
S

smpil

i need the buttons to appear with the text from the field that has jus
been created on them.

so, for example if a user enters television in the media field, then
button called television appears on the form.

thanks
smpi
 
A

Adrian Jansen

Use the textbox AfterUpdate event to unhide the button, and change its
caption property to the value in the textbox:

me.myButton.caption = me.myTextbox
me.myButton.visible = true

substitute your names for the example.

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top