Solved Cannot get comboBox on subform to refresh. (1 Viewer)

HillTJ

To train a dog, first know more than the dog..
Local time
Yesterday, 20:15
Joined
Apr 1, 2019
Messages
731
'Hi, on 'tblOrganisations', I have a tabbed 'subform' on tab 'Personal' of that subform is a combobox 'cboClassification' that I wish to update whenever a user selects the button 'BttnOpenCategory_Jobs' on the main form. This opens up form 'frmOrganisationCategory_JobRoles' , checks that 'tblOrganisation' is opened from 'tblOrganisations (I intend to use this form elsewhere), and if so, I wish to add the new record to cboClassification. Seems simple, but I cannot get it to work.

Appreciate your assistance as always.
 

Attachments

  • Contacts8.accdb
    4.7 MB · Views: 43

Edgar_

Active member
Local time
Today, 02:15
Joined
Jul 8, 2023
Messages
430
In tluJob_Classification subform
Code:
Private Sub Form_AfterUpdate()
    Form_frmEmployee_subform.cboClassification.Requery
End Sub

See if it helps
 

moke123

AWF VIP
Local time
Today, 03:15
Joined
Jan 11, 2013
Messages
3,920
see if this works or use the not in list event of the combo

Code:
Private Sub BttnOpenCategory_Jobs_Click()

    DoCmd.OpenForm "frmOrganisationCategory_JobRoles", acNormal, "", "", , acDialog

    Me.frmEmployee_subform.Form.cboClassification.Requery
  
End Sub
 

HillTJ

To train a dog, first know more than the dog..
Local time
Yesterday, 20:15
Joined
Apr 1, 2019
Messages
731
Gents, thanks. Will let you know.
 

HillTJ

To train a dog, first know more than the dog..
Local time
Yesterday, 20:15
Joined
Apr 1, 2019
Messages
731
Went with @Edgar_ recommendation works fine. Appreciate it. The project continues......
 

Users who are viewing this thread

Top Bottom