troubleshooting Question

Runtime Error: 2108

Avatar of Chi Is Current
Chi Is CurrentFlag for United States of America asked on
Microsoft Access
15 Comments1 Solution2935 ViewsLast Modified:
The SetFocus command in this IF statement results in a Runtime error #2108 - must save the field.  The statement is in the BeforeUpdate event of the 'ProductDesc' field.

I'd appreciate knowing how to make this work.

    If IsNull(Forms![frmNewProduct]![cmbVendor].Value) Then
        MsgBox "First enter a VENDOR!", vbCritical, "No Vendor"
        Cancel = True
>>>        Forms![frmNewProduct]![cmbVendor].SetFocus
        Exit Sub
    End If

Thank you, Jacob
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Database Architect / Application Developer
Join our community to see this answer!
Unlock 1 Answer and 15 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 15 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