On my form, I have an unbound ComboBox with a rowsouce of:
SELECT DISTINCTROW [qryOverDue].[ChangeID], [qryOverDue].[ImplementationDate], [qryOverDue].[Group] FROM [qryOverDue];
Also on the form are a CheckBox (Closed) and a TextBox (ClosedDate).
The underlying query displays records whose date is <NOW()-1 and 'Closed' = False
When a user selects a record from the ComboBox, they are taken to the record - this part works fine.
The user can then tick the CheckBox (causing its value to be True). The user can then enter the date in the TextBox ClosedDate.
The problem is, if the user tries to select another record from the ComboBox, there's an error (currently trapped with some instruction via a msgbox).
It's almost like a requery needs to run... but where and when?
My interim solution is: If the user advances to the next record and then goes back to the previous record, they are able to successfully select another record from the ComboBox but the record just updated is still in the list (even though Closed = True).
Obviously this 'solution' is pretty cheesy and I only mention it here to show my complete ineptness
SELECT DISTINCTROW [qryOverDue].[ChangeID], [qryOverDue].[ImplementationDate], [qryOverDue].[Group] FROM [qryOverDue];
Also on the form are a CheckBox (Closed) and a TextBox (ClosedDate).
The underlying query displays records whose date is <NOW()-1 and 'Closed' = False
When a user selects a record from the ComboBox, they are taken to the record - this part works fine.
The user can then tick the CheckBox (causing its value to be True). The user can then enter the date in the TextBox ClosedDate.
The problem is, if the user tries to select another record from the ComboBox, there's an error (currently trapped with some instruction via a msgbox).
It's almost like a requery needs to run... but where and when?
My interim solution is: If the user advances to the next record and then goes back to the previous record, they are able to successfully select another record from the ComboBox but the record just updated is still in the list (even though Closed = True).
Obviously this 'solution' is pretty cheesy and I only mention it here to show my complete ineptness