Hi everyone,

I am doing a vacation forms for my company, however I am stuck in the checking time slot part. Say If I am leaving today in the morning ("AM") and will be coming back on the tomorrow afternoon ("PM"). Therefore, the number of days that I have taken is 1.5 days.I have a combobox created in myform, but what coding should I give in order to check the "AM/PM" string and returns a number as stated as above? Can anyboy please help me out. This is the only part I am currently stuck with. I think there will be 4 time slot combinations with the am and pm string; (am-pm, pm-am, am-am, pm-pm).

P.S: I have one of the standard form modified, and I am trying to put some vb script in the script editor to get the above part working.

Thanks so much in advance!!!!