Im a rookie.
I have am unbound combo box populated with values (rowsource) from a query which has 2 tables in it. Each table has its own ID, but both are included in the combo box (info3). Sometimes the combobox has ID values from Table A, but the corresponding ID value in table B is NULL. The bound column is the ID from B, because I use it to populate text boxes, by going to that record using:
strCriteria = "[ID] =" & Me.info3
Me.RecordsetClone.FindFirst strCriteria
Me.Bookmark = Me.RecordsetClone.Bookmark
I have a statement which checks if the info3 (the bound column is from Table B), is NULL.
If it is, it "does some things" and at the end, i have Exit Sub.
THE PROBLEM: When I select an item from the combo, with value for ID from Table A, but NULL (bound column) from Table B, it exits the Sub, and clears the selection from the combobox, as if its not selected.
If i step through the code, it "does some things", like updating text boxes, but when it gets to Exit Sub, it all disappears, blank values in the text boxes (does some stuff), and shows the combo box blank.
Why does this happen when the Exit Sub is executed ?
Another clue: When i do Debug.print of the text boxes being updated (stuff), it actually updates them, and does Not empty them upon Exit Sub. However, the combobox still goes blank.
PLEASE HELP. I give props to whoever can solve this. I been trying for 3 weeks, about 20 different ways.
Many many many thanks to the guru who understands this.