Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_GeneralGeneral Functions

Public Function QuoteByQuoteType (
i As Variant,
QuoteType As xf_QuoteTypeEnum
) As String

Quotes the passed value like q(), but a passed enum is used to work out the quoting type. xf_QuoteTypeEnum: None, SingleQuote, DoubleQuote

i as Variant

The variant value to quote

QuoteType as xf_QuoteTypeEnum

None, SingleQuote, or DoubleQuote

Call Template:

Dim s As String
s = xf.Gen.QuoteByQuoteType(i, QuoteType)

See Also:

Example 1:

Docmd.RunSQL "UPDATE tblSample SET SampleCount=1 WHERE Gender=" & QuoteByQuoteType(nz(cboGender), SingleQuote)
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd