Am new to vb and functions .
How would I create a function for date conversion?
here is my code for date conversion.
How can I pass a date field into a function and receive a value back into my txtfield?
Dim fldDate As Double
Dim fldMyDate As Date
Dim fldMyDateStr As String
fldDate = fldReceiveDate
fldMyDateStr = Trim(Str(fldDate))
fldMyDateStr = Right(Left(fldMyDateStr, 6), 2) & "/" & _
Right(fldMyDateStr, 2) & "/" & Left(fldMyDateStr, 4)
How would I create a function for date conversion?
here is my code for date conversion.
How can I pass a date field into a function and receive a value back into my txtfield?
Dim fldDate As Double
Dim fldMyDate As Date
Dim fldMyDateStr As String
fldDate = fldReceiveDate
fldMyDateStr = Trim(Str(fldDate))
fldMyDateStr = Right(Left(fldMyDateStr, 6), 2) & "/" & _
Right(fldMyDateStr, 2) & "/" & Left(fldMyDateStr, 4)