Link to home
Start Free TrialLog in
Avatar of MBHEY131
MBHEY131

asked on

.haschanges ?

here it is:

        sform.Validate()
        sform.ROInvRecallBindingSource.EndEdit()
        If sform.RO_InvRecall_DS1.HasChanges() Then
            IsDirty = True
        Else
            IsDirty = False
        End If

the problem:
if I DO NOT call the "ENDEDIT" AND/OR THE "VALIDATE" methods "HASCHANGES" always comes back FALSE
if I DO call the "ENDEDIT" AND/OR THE "VALIDATE" methods "HASCHANGES" always comes back TRUE

whether I make changes to the DS or not - the changes are in the dataset correctly???

Can anyone shed some light on this issue for me?
SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada 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 MBHEY131
MBHEY131

ASKER

Check the code carefully to make sure that it does not make changes to the controls values or directly to the table(s) in the DataSet.
++++++++++++++++++++++++++++++++++++++
That was an earlier thought I had and upon inspection of the code (I DON'T KNOW) what's changing the set - however I am testing a datepicker chunk of code that I made a short date so no time gets saved but after a save nothing changes?? what I mean is that my issue does not change!

will look at the code more closely!
Is there a chunk of code I could put together in .haschanges that would let me know the offending control that's transferring the different info from the original dataset?
ASKER CERTIFIED SOLUTION
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
Thanx for the info!