How to know the active page in a form?

V

Vítor Barbosa

Hi,

I have a form that has 2 pages. I have a option group to select the page I
want to go. My problem is that when I use PageUp and PageDown the option
group doesn't update.

Can I get the active page number using VB code?

TIA,
 
A

Al Borges

Hi Vitor:

One way would be to see what object has the focus on, say, page 2, then go
to the object and place your code that you need to place updating your
option group on opening page 2 on it's ongotfocus event.

Regards,
Al
 
V

Vítor Barbosa

Hi Al Borges,

Your workaround worked just fine! Thank you. So simple! I was doing it more
complicated.

Vítor Barbosa
 

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