Copy event procedure

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I must copy On Got Focus event procedure to many datasheet fields.
Can I do this automaticaly to all, or one by one datasheet, or I must use
nerve pills before starting copy. :)
Thanks!
 
Is the code that you're copying going to be the same for each field?
Perhaps this is something that you could accomplish via a procedure
call or function?
 
This is the same code for all fields in many datasheets.
With this code, I call procedure to display data with SYSCMD method to
status bar text.
 
Write a Public Function in a standard module that does what you want it to
do. It will need to have a parameter or parameters so it will know what to
do it with.

Then, you won't need to put any VBA code in the datasheet form's modules.
just put a call to the function in the Got Focus event text box in the
controls' property dialog:

=FunctionName(SomeValue)
 

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