Link to home
Start Free TrialLog in
Avatar of AronMcD
AronMcD

asked on

MS Access VBA Forms

Hello,
This question is related to a previous question I asked.

http://www.experts-exchange.com/Microsoft/Applications/Q_27031414.html

When I'm checking my old value against the new value to see if it changed, when the old value is NULL it doesn't detect a change.  

Example:
If g_User_Task = "ReviseOrder" Then
        If Me.cboUDStakePockets.OldValue <> Me.cboUDStakePockets.Value Then
            Me.cboUDStakePockets.Value = Me.cboUDStakePockets.Value & " CHANGED"
        End If
    End If

Open in new window


So when the user opens the form and makes a selection from a combo box that was previously empty, the .oldvalue comes up as NULL and it doesn't detect a change.  Is there a way around this?  
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AronMcD
AronMcD

ASKER

Yep that worked.  Thanks capricorn!