UnsolvedCoding
Technical User
I am working on what should be a simple program but am stuck so any help would be appreciated.
As the program runs it comes to a part where it searches a string that is the path to a document.
The way it was written in VBA is it would look for 4 different variations for each deptartment and department number before moving on. Example - D4, D.4, D.04 or Dept4.
The problem is that I don't know how to get this to work in SQL. In VBA I could simply run a loop telling the computer to look for "D" & Nbr_Array(i) or "D."& Nbr_Array(i) etc, but in SQL how do I do that?
As the program runs it comes to a part where it searches a string that is the path to a document.
The way it was written in VBA is it would look for 4 different variations for each deptartment and department number before moving on. Example - D4, D.4, D.04 or Dept4.
The problem is that I don't know how to get this to work in SQL. In VBA I could simply run a loop telling the computer to look for "D" & Nbr_Array(i) or "D."& Nbr_Array(i) etc, but in SQL how do I do that?