Hi All,
I must be going nuts or have forgotten something. This is an easy one. I'm refactoring my code. This was the code before the refactoring
Code:
Dim list as String
list.Value = Form_Create.txtBox
list.Value = CStr(List)
list.Value = "[Deficiency Number] " & "IN (""" & list & """)"
and then when I refactor my code and apply some WITH Statements it looks like this:
Code:
Dim list as String
With list
.Value = Form_Create.txtBox
.Value = CStr(List)
.Value = "[Deficiency Number] " & "IN (""" & list & """)"
End With
But, when I refactor my code I get a "Compile Error" message that says that the WITH can only be used with user-defined types, objects and variants...
And, I'm getting random errors with other bits of code that I refactored. But, those I will get to later. One thing at a time.
Can anyone help me out? Googling this messes up the searches because of all the common words.
Thanks,
BrainExplodingFromCoffee