Hello:
I have Crystal Report that is functioning within a VB 6.0 application. This application is getting information from a large backend Access Database which is dumped Phone Switch information every day. The "Call time" field on the phone switch is a text field, so it dumps into the table four numbers such as 1434 (military time) instead of AM/PM format or 07:21 Military Format. This format is a pain, but currently we are not going to change it for various tech reasons.
Since this field is not a date field, I have had to do a lot of code formating SQL in VB 6.0 in order to transfer the data to a date. For Crystal, I know the SQL I have used for VB will not work - - it does not follow Crystal Syntax. My question is, how can I get a ":" inbetween two numbers so that my Call Time field reads 14:34 instead of 1434. I have tried formulas like this but have not been successful:
{ado.CallTime} "is equal to" Left({ado.CallTime},2) & ':'& Right({ado.CallTime}, 2).
Can anyone help me make this 4 digit field look like this 2 characters : 2 characters. Any advice would be great.
Martin K
I have Crystal Report that is functioning within a VB 6.0 application. This application is getting information from a large backend Access Database which is dumped Phone Switch information every day. The "Call time" field on the phone switch is a text field, so it dumps into the table four numbers such as 1434 (military time) instead of AM/PM format or 07:21 Military Format. This format is a pain, but currently we are not going to change it for various tech reasons.
Since this field is not a date field, I have had to do a lot of code formating SQL in VB 6.0 in order to transfer the data to a date. For Crystal, I know the SQL I have used for VB will not work - - it does not follow Crystal Syntax. My question is, how can I get a ":" inbetween two numbers so that my Call Time field reads 14:34 instead of 1434. I have tried formulas like this but have not been successful:
{ado.CallTime} "is equal to" Left({ado.CallTime},2) & ':'& Right({ado.CallTime}, 2).
Can anyone help me make this 4 digit field look like this 2 characters : 2 characters. Any advice would be great.
Martin K