Multipage Error Handling

  • Thread starter Thread starter John Petty
  • Start date Start date
J

John Petty

I am trying to code some error handling for a Mulitpage
form, that checks to see if a certain form is active
before writing data. I would like to use the page names
instead of the page values (easier for another programmer
to work with).

I would like to code something like this

If Multipage1.name <> "PageRelease" or MultiPage1.Name _
<> "PageChange" then
MsgBox("You must have an EO Form Active to use this _
Wizard" & vbCrLf & "Please open an EO Form and _
try again")
Exit Sub
Else
My code here

Any suggestions?

Thanks for your help

John Petty
 
John,

I do something like this with the same intent. The name for this page is
pgCompanies.

With mpQuery
If .Value = .pgCompanies.Index Then
'do something
end if
end with

Robin Hammond
www.enhanceddatasystems.com
 

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