Hello Ladies and Gents,

I created small class to make my data access easier on this project (why else should we have classes if not to make our lives a little more sane and keep our hair longer???).

The only snag I have run into is the following:

I would like for the code snippet below to be changed so that it returns the data in whatever datatype it was formatted in within my Access DB...

I'm sure this has been done before and that one of you will probably deside to doze of as you answer it, but it's been buggin' me just the same.

VB Code:
  1. Public Function GetVal(ByVal Field As String) As String
  2.         If IsNothing(RS) Then Exit Function
  3.  
  4.         Try
  5.             Return Convert.ToString(RS.Fields(Field).Value)
  6.         Catch ex As Exception
  7.             Return ""
  8.         End Try
  9.     End Function

Thanks in advance,

Squirrelly1