Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a variable (vMonthNum) that I access through an input box. I have a constraint on it to show listed values referencing a Month field (Jan, Feb, Mar, etc)
I want to convert the selection the user makes (Jan, Feb, Mar, etc) to a number that corresponds to the month. So if from the drop down the user selects Mar I need it converted to 3. Looking for the expression to do this.
Thanks in advance,
Steve
Try this:
vVar2 = Num(Date#(vVar1, 'MMM'))
vVar2 = Num(Month(Date#(vVar1, 'MMM')))
where vVar1 is linked to your inputbox
HTH
Best,
Sunny
Try this:
vVar2 = Num(Date#(vVar1, 'MMM'))
vVar2 = Num(Month(Date#(vVar1, 'MMM')))
where vVar1 is linked to your inputbox
HTH
Best,
Sunny
Attaching a sample:
Thank so much!
No problem
I am glad I was able to help.
Best,
Sunny