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
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'Code:Select Case aField.Type Case adDatestrReturnString = "#" & cstr(aField.Value) & "#"... End Select




Reply With Quote