I am doing Data base coding based on a large quantity of driving material descriptions. A ton (Thousands) of these variables include measurements such as 1' x 4" Steel Rod for example
I can't escape the quote in the criteria SQL because my criteria is dynamic. How else can I escape the quote?
If IsNull(Me.part.Value) = True Then
'if no part entered, use description
Description = Me.desc.Value
'look up the data on this part
Me.Quantity.Value = Nz(DLookup("[Inventory]", "myQuery", "[myQuery]!_
[Material Description] ='" & Description & "' And [myQuery]![Dept] ='" & dept & "'"))
where description is from a combobox that is filled based on department such as 1' x 4" Steel Rod
EDIT: Most questions that this would be related as duplicate are looking for single quotes only such as names with single quotes whereas I have fields with several single and double quotes int he same criteria