PC Review


Reply
Thread Tools Rate Thread

Change Page Order on Tab Control

 
 
=?Utf-8?B?TmlnZWw=?=
Guest
Posts: n/a
 
      4th May 2006
Is it possible to change the Page order on a tab control, I have 3 pages
Registrants
Events
Reports

when the form opens iwant it to look at a query and if the count is >1
change the page order to
Events
Registrants
Reports

so something like

if dlookup("count","eventcount")>0 then
me!tabctrl18 = new page order
else
me!tabctl18= old page order
end if


thanks
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      4th May 2006
hi,
you can use PageIndex property to do so:

if dlookup("count","eventcount")>0 then
me("pageEvents").PageIndex=0
else
me("pageRegistrants").PageIndex=0
end if


--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com


"Nigel" <(E-Mail Removed)> wrote in message
news:CEAAD690-9FC0-463C-85F7-(E-Mail Removed)...
> Is it possible to change the Page order on a tab control, I have 3 pages
> Registrants
> Events
> Reports
>
> when the form opens iwant it to look at a query and if the count is >1
> change the page order to
> Events
> Registrants
> Reports
>
> so something like
>
> if dlookup("count","eventcount")>0 then
> me!tabctrl18 = new page order
> else
> me!tabctl18= old page order
> end if
>
>
> thanks


 
Reply With Quote
 
=?Utf-8?B?TmlnZWw=?=
Guest
Posts: n/a
 
      4th May 2006
Perfect Alex

Thanks

"Alex Dybenko" wrote:

> hi,
> you can use PageIndex property to do so:
>
> if dlookup("count","eventcount")>0 then
> me("pageEvents").PageIndex=0
> else
> me("pageRegistrants").PageIndex=0
> end if
>
>
> --
> Best regards,
> ___________
> Alex Dybenko (MVP)
> http://alexdyb.blogspot.com
> http://www.PointLtd.com
>
>
> "Nigel" <(E-Mail Removed)> wrote in message
> news:CEAAD690-9FC0-463C-85F7-(E-Mail Removed)...
> > Is it possible to change the Page order on a tab control, I have 3 pages
> > Registrants
> > Events
> > Reports
> >
> > when the form opens iwant it to look at a query and if the count is >1
> > change the page order to
> > Events
> > Registrants
> > Reports
> >
> > so something like
> >
> > if dlookup("count","eventcount")>0 then
> > me!tabctrl18 = new page order
> > else
> > me!tabctl18= old page order
> > end if
> >
> >
> > thanks

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Order in Tab Control tgavin Microsoft Access Forms 1 17th Mar 2010 09:36 PM
I want to change the page order so that page 3 and 4 become 1and2 mk Microsoft Excel Misc 1 7th Jul 2009 07:52 PM
Change tab order in a tab control =?Utf-8?B?S2ljaGk=?= Microsoft Access 3 7th Sep 2007 02:18 AM
CONTROL TAB ORDER TO SUBFORM ON A PAGE Sammie Microsoft Access Forms 0 7th Feb 2005 05:54 PM
How do I change tab order on tab control =?Utf-8?B?QlB1bGxlcg==?= Microsoft Access Forms 1 27th Nov 2004 09:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 AM.