Hi All! TGIF!
This one is complex - in my eyes anyway - so I apologize and thank you in advance!
---Backstory part you can skip if you only want to read the problem---
I have a huge Customer List form that I made for all our sales people since we do not have a CRM. I have made many posts about the form before
The main purpose of the form is that the sales reps can import a list of their current customers and it will update the existing list removing and adding customers that have changed (ie they are no longer their customers or adding new customers).
I decided to add a data entry form of sorts for easier reading of the notes fields and searching for records, and it's going well so far however I have hit a brick wall with add the search function.
Basically when you open the userform (You can run the mDataEntry macro or click the Show Data Entry button in the ribbon) there is a listbox that shows all the data from the database sheet. Double clicking a record will bring that record up (or selecting it and clicking Load Record). That part is working fine.
---End Backstory---
The part that I am trying to fix is he Search area on the bottom right. User can select a search field Syspro ID, Web ID or Customer Name. Then type in the criteria and hit search and it will bring up that list in the listbox.
Customer Name is working fine, as a "contains" search so if I type "Customer" and there are customers called "Test Customer" or "Test Customer 2" they will come up.
However, for some reason my Syspro ID and Web ID searches are not working. I have been at this for 3 days and cannot figure out what is up with it.
There is some code attached to the form itself (listbox, buttons, etc) and then there is a module called mod_DataEntry that has the code for the search (Sub SearchData).
I am hoping someone can find what a did wrong..it's driving me nuts. Sample with small dataset is attached.
Sorry this is so long and detailed but hopefully it makes sense.!
PS
Just for credit sake, the UserForm came from a YouTuber TheDataLabs, I only modified it as I went along to fit my needs, following some of his videos.
Bookmarks