troubleshooting Question

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

Avatar of Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.Sc
Hankwembo Christopher,FCCA,FZICA,CIA,MAAT,B.A.ScFlag for Zambia asked on
Microsoft Access
3 Comments1 Solution3 ViewsLast Modified:
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

ASKER CERTIFIED SOLUTION
ste5an
Senior Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros