Hi all,
I have a combo box on a sub form. In this combo box I choose certain items to be added to the account.
From time to time these items (in a table) are "deleted". When an item is no longer available - i set a flag in the table - "deleted" =yes. These Items must still display on previous accounts, otherwise the combo box is empty when the account is viewed
My problem is now setting the row source for the combi box. I want these "deleted" items in the row source when viewed - BUT when I click on the combo box, they must not be there for selection.
I have tried setting the row source in the "on click" Event , to show only undeleted items in the dropdown list, setting it back to show all items on the "after update" event.
Somehow, the "on click" code only runs after the "after update" code?? thus having exactly the opposite result to what I want.
Or am I going crazy??
I'm using access 2007
Would be grateful for any advice on this cold and snowy Sunday afternoon!
Marion
I have a combo box on a sub form. In this combo box I choose certain items to be added to the account.
From time to time these items (in a table) are "deleted". When an item is no longer available - i set a flag in the table - "deleted" =yes. These Items must still display on previous accounts, otherwise the combo box is empty when the account is viewed
My problem is now setting the row source for the combi box. I want these "deleted" items in the row source when viewed - BUT when I click on the combo box, they must not be there for selection.
I have tried setting the row source in the "on click" Event , to show only undeleted items in the dropdown list, setting it back to show all items on the "after update" event.
Somehow, the "on click" code only runs after the "after update" code?? thus having exactly the opposite result to what I want.
Or am I going crazy??
I'm using access 2007
Would be grateful for any advice on this cold and snowy Sunday afternoon!
Marion