copy commands from one form to another

  • Thread starter Thread starter JR
  • Start date Start date
J

JR

I would like to copy commands for navigation from my main form to other forms
in the database.

Any suggestions on how to do this?

Thanks!
 
Do you mean that you use your own navigation buttons, and you don't
want to rewrite the same code for each button? If that's the case you
could put navigation code in a standard module, then call it in the Current
event of each form.
 
Not enough info to fully understand your question.
Are you saying you are using custom navigation buttons on a form with VBA
code that does the navigation?
If so, put the VBA code in a standard module and copy it from the click
events of your nav buttons.
 
My question is simular....
What if you wanted to copy the form "content" (most of the data) from one
form to another. How would you go about that?
 
Forms don't have data: they're just views into the data contained in the
tables.
 
OK Mr Steele, you are correct, but the theroy is valid. The question still
stands...How would you do this.
 
Your question would appear to have nothing to do with JR's question of how
to copy commands from one form to another. You asked " What if you wanted to
copy the form "content" (most of the data) from one form to another. How
would you go about that?"

You'd point the second form to the same table as the one to which the first
form is bound.
 
Back
Top