Please Help me understand how to use the varible SizeHdr in a Dlookup.
I get the message of data type mismatch.
The column RollSize is of type text!
Select Case SizeDeterminer
Case Is >= 270
SizeHdr = 270
Case 80 To 269
SizeHdr = 80
Case Else
MsgBox ("You will have to do a manual entry as order size is too small!")
End Select
DealerPrice = DLookup("[RollCost]", "Products", "[Product Name] = cmbProdName And [RollSize] = " & CStr(SizeHdr))
I get the message of data type mismatch.
The column RollSize is of type text!
Select Case SizeDeterminer
Case Is >= 270
SizeHdr = 270
Case 80 To 269
SizeHdr = 80
Case Else
MsgBox ("You will have to do a manual entry as order size is too small!")
End Select
DealerPrice = DLookup("[RollCost]", "Products", "[Product Name] = cmbProdName And [RollSize] = " & CStr(SizeHdr))