HalloweenWeed
Member
- Local time
- Yesterday, 20:47
- Joined
- Apr 8, 2020
- Messages
- 220
Hi again,
I have been having some trouble with improving my 'live search' form, where it shows results as you type search criteria. Because the "requery" function interferes with the cursor in the criteria input textbox control, and I have to transfer the .Text contents into another control for the actual search parameters on every keystroke, I am trying breaking it into form and subform (for the results). The criteria search is too complex for an SQL, so I am doing the results in vba code, saving them in a table for the subform. I have a subroutine in the subform module that does the actual table-making, and am trying to call it from the parent form with the code:
I have declared the subroutine "Public." I know it works, it was working before I split the form into form/subform. But at run-time I get "Error 94: Invalid use of Null." Why?
There are no parameters to pass, to or from the subroutine.
I have been having some trouble with improving my 'live search' form, where it shows results as you type search criteria. Because the "requery" function interferes with the cursor in the criteria input textbox control, and I have to transfer the .Text contents into another control for the actual search parameters on every keystroke, I am trying breaking it into form and subform (for the results). The criteria search is too complex for an SQL, so I am doing the results in vba code, saving them in a table for the subform. I have a subroutine in the subform module that does the actual table-making, and am trying to call it from the parent form with the code:
Code:
Call Me.Form.[GrvntSrchSeqNoSubfrm].Form.GrvtSrch
There are no parameters to pass, to or from the subroutine.