[Resolved] SQL Datatype tags
Does anyone know of a function which formats data from a MS Access field by adding the correct tags and converting it to a string?
to explain a bit better say you have a field of unknown type aField
Code:
Select Case aField.Type
Case adDate
strReturnString = "#" & cstr(aField.Value) & "#"
...
End Select
I would make this myself however looking at the DataTypeEnum in the Object Browser reveals a number of data types i don't recognise and some are little confusing such as the fact that there is a 'adDate' and a 'adDBDate'