Reference a tab in access web form

magster06

Registered User.
Local time
Today, 18:36
Joined
Sep 22, 2012
Messages
235
Hello All,

I have a access web form with two tabs. I also have two controls for adding new info and editing info.

What I want to do is this:

If the user clicks on the first tab (pgFocus) and then clicks on the "Add" button, then the Focus form will open (this works).

If the user clicks on the second tab (pgComplainant) and then presses "Add", then I want the Complainant form to open (does not work).

I am using this to reference the page tabs in the macro:

Code:
If [Form]![pgFocus].[PageIndex] = 0 then
OpenForm "Add Focus"

then below that I placed another if macro with:

Code:
If [Form]![pgComplainant].[PageIndex]=1 then
OpenForm "Add Complainant"

Like I mentioned, it will open the "Add Focus" form, but it does not matter which tab I am on.

Any help would be appreciated!
 
Last edited:
OK, either this question is too easy or it is too difficult.
 

Users who are viewing this thread

Back
Top Bottom