S
swngdncr
OK, this is driving me crazy. I'm going to pull all my hair out in a
moment. I've searched all the threads etc., and still cannot format
this code to work correctly. I've tried every version of single and
double quotation marks and ampersands that I've found in examples that
appear to be identical to what I'm trying to do. I've also tried to
dim the variables as String and Long instead of Variant. Nada works...
I would be ever so greatful if someone could assist me with this. The
relevant portions of the code are:
Dim varExistWO As Variant
Dim varExistWOLocation As Variant
varExistWOLocation = DLookup("[WorkOrderID]",
"tblWorkOrdersLocations", _
"[WorkOrderID]= '" & varNewWO & "'" & _
" And [LocationID] = '" & varNewLocation & "'")
moment. I've searched all the threads etc., and still cannot format
this code to work correctly. I've tried every version of single and
double quotation marks and ampersands that I've found in examples that
appear to be identical to what I'm trying to do. I've also tried to
dim the variables as String and Long instead of Variant. Nada works...
I would be ever so greatful if someone could assist me with this. The
relevant portions of the code are:
Dim varExistWO As Variant
Dim varExistWOLocation As Variant
varExistWOLocation = DLookup("[WorkOrderID]",
"tblWorkOrdersLocations", _
"[WorkOrderID]= '" & varNewWO & "'" & _
" And [LocationID] = '" & varNewLocation & "'")