Affichage des articles dont le libellé est After Update on Form Open with Openargs??. Afficher tous les articles
Affichage des articles dont le libellé est After Update on Form Open with Openargs??. Afficher tous les articles

After Update on Form Open with Openargs??

vendredi 24 avril 2015

Hi Guys.

Is there a way to simulate the afterupdate event when a form loads using openargs ?

Basically, I have a form which is controlled by a combobox. It can either be opened from another form with the combobox value being pulled from another form, or it can be opened as it's own entity, and the combo box value selected.

When opened manually, and when a value is selected from the Combobox, an afterupdate event is fired from the combobox properties, and a few forms, and controls, based on it's value are hidden, refreshed, calculated and so on.

Is there a way I can do this automatically, when the form is opened via open args? Currently, when opening via openargs, the combobox value is there, but does nothing.

the form containing the openargs currently has this on a doubleclick event:

Code:


Private Sub Account_DblClick(Cancel As Integer)
    DoCmd.OpenForm "frmREGISTERmain", , , , , , AccountID
End Sub

The Openargs for the form being opened is:

Code:


Private Sub Form_Open(Cancel As Integer)
    Me.cboAccountSelect = Me.OpenArgs
End Sub

As always, many thanks for your help.
After Update on Form Open with Openargs??

Labels