Hi everyone,
here is the situation: I'm using VBA in access, and as you know, when we use an SQL command within VBA for filtering dates in a given table, we can only introduce US format date ("mm/dd/yyyy", in fact only US date format can be input through an SQL command in VBA :-( ). Unfortunately, all dates in my table ([MyTable].[Dates]) are formated according to the local configuration ("dd/mm/yyyy"). Hence, I'm looking for a command that converts [MyTable].[Dates] into the US format. Any clew?
Note: some could suggest to write the SQL directly in a query which uses [MyTable] thus avoiding the the use of VBA... the fact is that [MyTable] is a temporary one and will be deleted later on in the procedure. Furthermore I'm trying to have a memory efficient procedure.
thanks for your help,
ben
here is the situation: I'm using VBA in access, and as you know, when we use an SQL command within VBA for filtering dates in a given table, we can only introduce US format date ("mm/dd/yyyy", in fact only US date format can be input through an SQL command in VBA :-( ). Unfortunately, all dates in my table ([MyTable].[Dates]) are formated according to the local configuration ("dd/mm/yyyy"). Hence, I'm looking for a command that converts [MyTable].[Dates] into the US format. Any clew?
Note: some could suggest to write the SQL directly in a query which uses [MyTable] thus avoiding the the use of VBA... the fact is that [MyTable] is a temporary one and will be deleted later on in the procedure. Furthermore I'm trying to have a memory efficient procedure.
thanks for your help,
ben