refresh a form using VB

  • Thread starter Thread starter Tara
  • Start date Start date
T

Tara

First of all, I'm not too familiar with VB although I
have dabbled a little here and there. What I need help
with is some code that will refresh a form and then run a
macro as well. I can get everything to work if I use
separate command buttons created by the wizard, but when
I try to combine the code behind each and run it with
just one button, it doesn't work. Any ideas???

Thanks,
Tara
 
try using

me.requery 'to requery form
docmd.RunMacro "macroname"
 
It would be easier if you post the codes for the 2 CommandButtons and
someone will show you how to merge them.
 

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