Hi,
I have a problem where I have replaced a bound control with an unbound control (though the underlying query still contains the columns), I populate the unbound control with the column data from the query via the oncurrent event.
So far so good, then when the unbound control is changed I use a distributed transaction to perform an update.
However, after the T-SQL runs, the app errors with
The Microsoft Access database engine stopped the process because you and another user are attempting to change the same data at the same time.
Now I get what the problem is, the SP has updated the column, the form has a query bound to it with this column and now there was an update outside of the form and the data held in the bound query doesn't match.
OK, so what is the correct way to deal with this, I tried using
Code:
me.requery
I've tried
Code:
me.recalc
Code:
me.refresh
I was thinking I need to remove the column from the bound query, use a DLookup to get the initial values to populate the unbound controls and then this should remove the issue.
Is this the way to go? or is there a way to tell ms access to ignore the change to this particular column but still save changes made to other bound controls on the form.
Or is this impossible having a mixture of bound and unbound controls but have the query select the columns not bound?
Hope this makes sense, all help appreciated.
1DMF.
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music