Requery SubForm after button is clicked on Popup box - forms

I have a navigational Form e.g. MainNavigationForm. It has multiple navigational tabs and one of the tabs have a form e.g. "MainForm". This MainForm have a comboBox where user selects a value. MainForm also has a subform e.g. "SubForm" which is hidden initially. Once user selects something from the comboBox..a Popup form pops up e.g. "PopupForm". User fills in the details on the PopupForm and once the user hits Create button on PopupForm, he should be redirected to MainForm. But this time, the SubForm should be made visible and shown the updated data using requery. So, my question is How can I requery the SubForm from the OnClick event of the Create button which is on the PopupForm??
I hope I am clear in explanation..if not..please ask more..thanks in advance

Got it working..Thanks to SmileyCoder
http://bytes.com/topic/access/answers/907826-how-requery-subform-closing-popup-form
IF your opening your form from code you can simply do:
docmd.OpenForm "frm_Popup",acNormal,,,acFormPropertySettings,acDialog
Me.subFrm.Requery

Related

Which Parent Form Event is Triggered When Subform is Entered?

I have a main/parent form with multiple subforms and the main form fields are locked until the user clicks an "Edit" button. This triggers an event which unlocks the fields.
When the user selects one of the subforms, I'd like to lock the fields again, but cannot find which main form event is triggered when activating the subform. It doesn't appear to be LostFocus or Deactivate.
Which event on the parent form is triggered when one of its subforms is activated/entered?
It is the OnEnter and OnExit events of the subform control on the parent form.

Asp.net Ajax Tookit AutoCompleteExtender stops working in update panel after partial postback

I have an update panel with some text entry boxes, a clear button and a save button. Under the boxes I have a repeater that holds database entries. When a user enters data in the textboxes and clicks the Save, a database row is created and the repeater rebinds and shows the new dataset. There are buttons on each repeater row for "Delete" and "Edit". When the Edit button is clicked on a row, the data from that row is populated back into the text boxes. When I do that, the autocomplete extenders stop working. I have a button that simply clears the textboxes. If I click that button and clear the textboxes, the autocomplete starts working again. Even if I remove all code from that "Edit" button in the repeater command and don't have it populate the text boxes from the row clicked, the autocomplete stops working. Something is happening on the item command for the repeater row that is turning off the autocomplete. Any suggestions?
I had some javascript functions running from the code behind on page load. Moving that from the server side page load to the javascript pageLoad() function fixed the issue

Mouse Scroll with 1 Main Form and 2 subforms MS ACCESS

I have a MS ACCESS 2007 form with 2 subforms. I have a few fields from the main form as text, a few on the second form as text, and a lot on the third form as a variety of things.
My problem with these subforms, when I am entering data in the main form, my mouse scroll works just fine to scroll to the bottom of the form. When I am in subform 1 or 2, my mouse scroll stops working to scroll down to the bottom of the main form. I tried looking up disabling mouse scrolling but that's already preset for a single form view in MS Access 2007. I just want the mouse scroll to work only for the general form even if you are doing data entry into subform 1 and 2.
I know it's been a while since your post. But I've had nearly the same problem and figured it out, so thought I'd post the answer anyway:
If you make an extra textbox in your main form (make sure it's property visible is set to TRUE), then place this textbox behind any other control so to the user it seems like there is no textbox.
Now in the properties of the details selection of the mainform make an onClick event (this occures when you click anywhere in the mainform). In this event use the SetFocus method which redirects to the textbox made earlier. The code looks like this:
[Forms]![MAINFORM]!TEXTBOX.SetFocus
If you click on the form (outside the subforms) the textbox gets selected automatically, which allows you to scroll the main form. The user doesn't see the textbox so it seems as if he/she selected the mainform.
Hope it helped!

Create a navigation window in Access

I'm looking to create "Welcome" window of sorts for the database I'm working on. The window would have four buttons. My current issue is with a button that I want to use to open a form I've already created.
The trick is this form is meant to be the input window to a table, so I don't want the form to come pre-populated with any data, it would (if completed) create a new record, but only once the form is completed.
Opening the form isn't the trouble (DoCmd.OpenForm "form name"), what I'm not sure is how to have it open blank.
DoCmd.OpenForm "form name",,,,acFormAdd
This opens the form to a "new" record.
If the form is bound to a table, then you can open it to a "new" record but that record is added to the database as soon as the first value is input. This doesn't fit your requirement of the record being added "only once the form is completed".
If the form is unbound, it's technically already on a blank record but you would have to create some event to save that record to the table. That event could be the OnClick event of a button, or the AfterUpdate event of a required field (although the OnClick event of a button is probably the proper method 99.999% of the time).

Parent-Child Window Interaction GWT

There is parent window, which has a Panel. When user clicks on a button from parent window then a popup opens up. On popup user populates some fields and clicks on OK button then a new row should be created on parent window's panel and set values from popup window and close it.
Any Idea how to do this in GWT? Please post some example if you have. Thanks in advance for your help.
You must create a class representing the Popup and add a field to it referencing the Parent Window. In the constructor of the Popup, you pass the Parent Window as a parameter. When the user clicks ok in the popup, you call the PArent window and ask it to add a row via a method present in the ParentWindow