copy commands from one form to another

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!
 
B

Beetle

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.
 
K

Klatuu

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.
 
N

NEC-2008

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?
 
D

Douglas J. Steele

Forms don't have data: they're just views into the data contained in the
tables.
 
N

NEC-2008

OK Mr Steele, you are correct, but the theroy is valid. The question still
stands...How would you do this.
 
D

Douglas J. Steele

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.
 

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