populate tag attribute

  • Thread starter Thread starter ras
  • Start date Start date
R

ras

Is it possible to write any kind of function that can be placed in the
on open event that would populate the tag attribute with a number. I
need this to be saved in the form and these number to be available the
next time the form is opened.

So after the tag has a number which I can do, there needs to someway
to save the form with the changed values.

Any ideas, I have seen some posts that this is not possible, but there
must be some way to do it....


TIA
 
Only way to do what you seek is to open the form in design view, modify the
Tag property, and then close the form. And you'd need to do this from
another form that would be running the code to do this.

However, it's not a good idea to make design changes this way. Instead, if
you want to save a value that would be used by the form the next time, use a
table to store the value and then let the form look up the value in the
form's Load event and write it into the Tag property of the control.
 
Thanks for the response, thought it was something like that. I want
to populate the tag to serve as an identifier so that I can translate
the captions based on the value of the tag. The program is fairly
large and i did not want to have to manually populate all the tags
with some value.
 

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

Back
Top