Form navigation issue - oracleforms

There are 2 forms example Form 1 & Form 2
By clicking a link on Form 1 -> Form 2 should be opened.
Form 2 also has validation and error message that should be displayed on opening form 2.
When navigating from form 1 to form 2, form 2 produces message popup but the message appears even before form 2 is rendered, i.e message s displayed on top of form 1 itself, on clicking ok then form 2 is rendered.
How to display the form 2 message after form 2 is rendered?

Related

Angularjs Form allows jump to next tab only if all fields of this tab is valid

There is a form created using Angularjs,created a next button that jumps to next tab but dont know how to put check so that it first check all inputs and then jump to next tab if all valid.
next button performs 2 functionalities:-
1.checks all inputs are valid and required.
2.After checking,jumps to next tab if all valid and completly filled.

How to make all fields mandatory in a form and jump to next page only if all fields are filled?

I am creating a form having multiple pages using angularjs,submit button is on last page and next and previous button is on all the pages. I want next button to be active only if all the fields in each page is filled by the user.User is not allowed to see the next page until all fields are filled on each page.
apply this for field you want to validate
<input ng-model="somefield">
<span ng-show="!somefield.length">Please enter something!</span>

SubForm 1 filters SubForm 2 on different Tabs

I am trying to link SubForm 1 in one tab to SubForm 2 in a different tab on the same form so that when I click a row in SubForm 1 on the first tab it filters SubForm 2 on the other tab:
I have tried the following SQL code inside SubForm 2:
SELECT Payment.WOrderID, Payment.PymtDate, Payment.PymtMethod, Payment.Amount, Payment.Rate, Payment.CheckNum, Payment.TransNum
FROM Payment
WHERE (((Payment.WOrderID)=[Forms]![Main Menu]![Main Menu SubForm].[Form]![txtWOrderID]));
Then in the OnClick Event of the tab for SubForm 2 I put this VBA:
Forms![Main Menu]![Main Menu SubForm 3].Refresh
I will filter the subform but I always get the top reference, what am I doing wrong?
What i'm doing in this situation, i create a hidden textbox on the main form (lets Name it txtMainWOrderID).
on the Current event of SubForm 1 i set the value of txtMainWOrderID on the main form to the value of SubForm 1 txtWOrderID.
Now i link SubForm 2 to the txtMainWOrderID (in you case i figure, Link Master Fields:txtMainWOrderID, Link Child Fields:txtWOrderID) so it gets automatically updated when i click a row in subform 1 & you won't need the WHERE inside your SQL Statement.
hope i understood your question & i explained it enough.

Updating text box from subform

I have the main form "MForm" with 2 subforms "subform1" and "subform2".
On subform1 i have 5 tabbed pages: Page1, Page2, Page3, Page4, Page5. Each tab will have a subfom included.
On Page1 i have a form "subform3".
My question is, how i can update a text box "txt_test" from subform3 from subform2?
I tried:
Forms!MForm!subform1.Form!subform2.Form!txt_test.Value
Forms!MForm!subform1!Tab.Pages("Page1").txt_test.Value
I am new to access and i can't find a way to access the data from other subforms.
Try this:
Forms!mform!subform2!txt_test.Value = Me.txt_test3.Value
txt_test3 is the textbox in subform3 (on Page 1 of subform1).
IF you put code into module of form subform3 then this code should change value of txt_test inside subform2:
Me.parent.subform2.form.controls("txt_test").Value = "some value"

MS Access cursor location in continuous form

I have a contunuous form where editing is disabled. If you want to edit an entry you have to select the line in a table and click the button "Edit".
The problem is when the form loads it's allways the first line of the table that is selected by default and if you click the "Edit" button a from will open with values from the first line of the main form.
What I want is the cursor to be set to nowhere when the form opens and if you click the "edit" button a message box would appear saying that no record is selected. How can this be done?
Put a header on the form, and put a textbox in the header that has the form's name or something. In the Load event of the form, set the focus to the textbox in the header. Something like:
Me!txtMyTextBox.SetFocus
That should get the focus off your continuous form.