Originally Posted by
mib1019
... since the user may go in and edit the airdates textbox and so I would only want current values...
This is why I suggest that you get rid of the txtAirDates field all together and only "calculate" the string when needed for presentation.
You can use the split function to break up your date string into an array, then use CDate to convert to a date datatype.
For example:
Code:
Dim dateArray() As String
Dim i As Integer
dateArray = Split(AirDates, ",")
For i = 0 To UBound(dateArray)
'This loop will print each date individually
'From here you can insert records into your child table
'or do what ever it is you need to do.
Debug.Print CDate(dateArray(i))
Next i
Where AirDates = a string like "6/17, 6/19, 6/23, 6/25". Note that the example string you've provided doesn't have a year so CDate will assume the current year. You can use the DateSerial function to specify the year if it's not available within the string.