I am construction a query and want to include a field as an expression as follows:
IIF(isnull(Place),strPlacename,Place)
where place is a field in a table; but strPlacename is a variable containing the name of a place to be used if Place is Null. SQL has a problem with it. I have tried "'" & strPlacename & "'" but no luck... How can I get this to work ??
IIF(isnull(Place),strPlacename,Place)
where place is a field in a table; but strPlacename is a variable containing the name of a place to be used if Place is Null. SQL has a problem with it. I have tried "'" & strPlacename & "'" but no luck... How can I get this to work ??