Avatar of Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Flag for Zambia

asked on 

How to from a specific control from the parent form to the subform in Ms Access 2016

I'm trying to move from the specific control after it is updated to the subform, on my development mode it is working , on the other side with a client using Ms Access runtime 2016 its failing. Can someone spot the mistake on the codes below:

Private Sub CboSalesInvoicesPre_AfterUpdate()
On Error GoTo Err_Handler
Me.sfrmLineDetails_Subform.SetFocus
Call CmdUploadInvoices_Click
Me.CboSalesInvOrders = ""
Me.CboSalesInvoicesPre = ""
Exit Sub
Exit_CboSalesInvoicesPre_AfterUpdate:
Exit Sub
Err_Handler:
Resume Exit_CboSalesInvoicesPre_AfterUpdate
End Sub 

Open in new window

Private Sub CboSalesInvoicesPre_Exit(Cancel As Integer)
On Error GoTo Err_Handler
If MsgBox("Do you have the sales order to attach, if yes then select order to attach now and Are you sure the Currency Type is Ok and Exchange Rate?", vbYesNo + vbQuestion, "Internal Audit Manager") = vbYes Then
Cancel = True
Exit Sub
End If
Exit_CboSalesInvoicesPre_Exit:
Exit Sub
Err_Handler:
Resume Exit_CboSalesInvoicesPre_Exit
End Sub

Open in new window

Microsoft Access

Avatar of undefined
Last Comment
ste5an

8/22/2022 - Mon