I need help duplicating "text to columns" in access.
I have a database field that is 6 characters log. I need the field broken down into 3 columns depending on where the hyphen is.
I tried using Left & Right, but the problem is that in some cases the entire 6 characters are used up, and not in others, but the extra character space is still there.
Example:
Shifts
12-2-1
3-1-2
Is there some sort of VBA code that can do the breakouts based on teh hyphen vs character count?
Thanks,
David
I have a database field that is 6 characters log. I need the field broken down into 3 columns depending on where the hyphen is.
I tried using Left & Right, but the problem is that in some cases the entire 6 characters are used up, and not in others, but the extra character space is still there.
Example:
Shifts
12-2-1
3-1-2
Is there some sort of VBA code that can do the breakouts based on teh hyphen vs character count?
Thanks,
David