Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Using Multipages in a Form

Hey all

I have just started using multipages in a form as I have heaps of info
to extract.

The problem is I do not know how to set the focus from one page to the
next.

I have field validations and when they trigger and the multipage is on
another page I get a notinfocus error.

I have these sort of validations:
'Checks if REFERRAL SOURCE is entered
If Me.cbRefSource = "" Then
MsgBox "Please enter the 'Referral Source'", vbInformation,
mboxheader
Me.cbRefSource.SetFocus
Exit Sub
End If

and need to get the form to goto the page first.

Please help - will be appreciated.

Aaron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Using Multipages in a Form

You need the value property

mpInput.Value = 0
selects the first page.

For readability when using a multipage, I also name each page in the
properties window, and then use something like this

With mpQuery
If .Value = .pgCompanies.Index Then
'do something
End If
End With

Robin Hammond
www.enhanceddatasystems.com

"Azza" wrote in message
m...
Hey all

I have just started using multipages in a form as I have heaps of info
to extract.

The problem is I do not know how to set the focus from one page to the
next.

I have field validations and when they trigger and the multipage is on
another page I get a notinfocus error.

I have these sort of validations:
'Checks if REFERRAL SOURCE is entered
If Me.cbRefSource = "" Then
MsgBox "Please enter the 'Referral Source'", vbInformation,
mboxheader
Me.cbRefSource.SetFocus
Exit Sub
End If

and need to get the form to goto the page first.

Please help - will be appreciated.

Aaron



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula (off form) that completes form data based on a result lldiel Excel Worksheet Functions 2 November 24th 09 11:09 PM
Using a template form, advance a form number everytime you open ShoDan Excel Discussion (Misc queries) 1 January 31st 08 01:34 PM
MultiPages Bill[_28_] Excel Programming 1 October 19th 04 05:49 PM
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM
Scrolling in Multipages Omar[_4_] Excel Programming 1 February 23rd 04 12:38 AM


All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"