Dim fmName as string
Dim InUseVar as string
fmName = "Test1"
InUseVar = DLookup("[In_Use]", "All_Forms", "[Form_Name] = ' " & fmName & " ' ")
Basically, I just want to take the value of the field In_Use found in table All_Forms and set InUseVar equal to it, when the field Form_Name = fmName.
I get the error
revious operation was canceled.
Any clues here? Hopefully this enough info,
Marco
Dim InUseVar as string
fmName = "Test1"
InUseVar = DLookup("[In_Use]", "All_Forms", "[Form_Name] = ' " & fmName & " ' ")
Basically, I just want to take the value of the field In_Use found in table All_Forms and set InUseVar equal to it, when the field Form_Name = fmName.
I get the error

Any clues here? Hopefully this enough info,
Marco