Public Function DateTimeToSQLText(d) As String
Convert a date and time to text suitable for use in an SQL query, including date delimiters. Uses the DbConnect object's SQLStatementFormat setting to determine the correct Jet or MSSQL date delimiters
Core functions
Convert a date and time to text suitable for use in an SQL query, including date delimiters. Uses the DbConnect object's SQLStatementFormat setting to determine the correct Jet or MSSQL date delimiters
Convert a date and time to text suitable for use in an SQL query, including date delimiters. The user passes an SQLStatementFormat setting to determine the correct Jet or MSSQL date delimiters The date passed is a variant, and a Null value returns the string: NULL
Convert a date to text suitable for use in an SQL query, including date delimiters. Returns text dates (eg. 21 Nov 2011) so that the information is unambiguous. JET SQL always assumes U.S. date format (eg. mm/dd/yyyy) even though the query editor will display the date in your regional format.
# is used to delimit dates in JET, and ' in MSSQL The date passed is a variant, and a Null value returns the string: NULL
Did the last method call throw an error due to a duplicate key value ?
Did the last method call throw an error ?
Opens an ADO Recordset object against the current database connection.
Opens a DAO Recordset object against the current database connection.
Returns the value from the first column and row of the result set from the passed SQL. Like DLookup, but takes a full SQL statement.
Run the passed SQL, returning False if an error occurred.
Uses the database Execute() method, known to be more reliable than the Docmd.RunSQL method, and supports running against databases other than the current one.