Public Function dq(i As Variant) As String
Same as q() but adds and escapes double quotes.
Quoting and Escaping Functions
Same as q() but adds and escapes double quotes.
Adds single quotes around the passed value. Quotes are escaped, so for example if the value O'Leary was passed, the result would be 'O''Leary'. This form of escaping is supported by JET and MSSQL Server. The value NULL returns empty quotes (ie. ''). Using the q() function also protexcts from SQL injection attacks and results in more readable code.
Quotes the passed value like q(), but a passed enum is used to work out the quoting type. xf_QuoteTypeEnum: None, SingleQuote, DoubleQuote
Quotes the passed value like q(), but using the passed in quote string
Remove single quotes or # characters around a date text value.
No unescaping necessary.
Add enclosing square brackets around the passed string if non empty and isn't already square bracketed
remove enclosing square brackets from the passed string, if present
Unquote and unescape a single or double quoted string - the reverse of q() or dq(). Automatically determines the quote type by looking at the first character.