I have a form/subform based on a query. To search records and add new items from a combobox I placed an unbound combobox there then used the notinlist event to add new items, works fine.
But once the new item is added it doesnt refresh the form/subform. So I was going to requery the form in the after update event but the combox has a macro in there I didnt put there that has code in it based on my query. Select Record (, , First, ="[fldOTDate] = " & "#" & Format(Screen.ActiveControl,"mm/dd/yyyy") & "#"
Would I have to remove the macro, replace the code as VBA before I could use the after update event to add a requery command?
Or is there a way to requery using a macro, I have never used macros because everyone says its bad coding form so unfamiliar with the process.
But once the new item is added it doesnt refresh the form/subform. So I was going to requery the form in the after update event but the combox has a macro in there I didnt put there that has code in it based on my query. Select Record (, , First, ="[fldOTDate] = " & "#" & Format(Screen.ActiveControl,"mm/dd/yyyy") & "#"
Would I have to remove the macro, replace the code as VBA before I could use the after update event to add a requery command?
Or is there a way to requery using a macro, I have never used macros because everyone says its bad coding form so unfamiliar with the process.