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:
then below that I placed another if macro with:
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!
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: