Valery
Registered User.
- Local time
- Today, 03:20
- Joined
- Jun 22, 2013
- Messages
- 363
Hi all!
I have create a series of text boxes through much hardship (newbie!) to change a given date, in a given report, into French. I have save it in a report so I can easily retrieve the text boxes and copy and edit them for other reports. However, this is really cumbersome and may be even more for the users.
I would like to have a module - if possible - perform these expressions.
Here are the text boxes by name, control source and format (when useful to you). Please don't laugh too hard - it's all I knew to do
txtCurDate
=Now()
dd mmm yyyy
txtMonthNum
=DatePart("m",[txtCurDate])
txtDayNum
=IIf([txtDayNum]="1","1er",[txtDayNum])
txtMonthFre
txtDateFre
Therefore a date like 29-Feb-2006 become – Le 29 février 2006. Note: In French the first day of any month is written as: 1st which is - 1er - in French. Which is why I have the text box – txtDayNum.
For now, I copy all the codes and replace the field names with the date field name that needs to be in French!
Thank you!
I have create a series of text boxes through much hardship (newbie!) to change a given date, in a given report, into French. I have save it in a report so I can easily retrieve the text boxes and copy and edit them for other reports. However, this is really cumbersome and may be even more for the users.
I would like to have a module - if possible - perform these expressions.
Here are the text boxes by name, control source and format (when useful to you). Please don't laugh too hard - it's all I knew to do
txtCurDate
=Now()
dd mmm yyyy
txtMonthNum
=DatePart("m",[txtCurDate])
txtDayNum
=IIf([txtDayNum]="1","1er",[txtDayNum])
txtMonthFre
Code:
=IIf([txtMonthNum]="1","janvier",IIf([txtMonthNum]="2","février",IIf([txtMonthNum]="3","mars",IIf([txtMonthNum]="4","avril",IIf([txtMonthNum]="5","mai",IIf([txtMonthNum]="6","juin",IIf([txtMonthNum]="7","juillet",IIf([txtMonthNum]="8","août",IIf([txtMonthNum]="9","septembre",IIf([txtMonthNum]="10","octobre",IIf([txtMonthNum]="11","novembre",IIf([txtMonthNum]="12","décembre"))))))))))))
txtDateFre
Code:
="le" & " " & [txtDayFre] & " " & [txtMonthFre] & " " & DatePart("yyyy",[txtCurDate])
Therefore a date like 29-Feb-2006 become – Le 29 février 2006. Note: In French the first day of any month is written as: 1st which is - 1er - in French. Which is why I have the text box – txtDayNum.
For now, I copy all the codes and replace the field names with the date field name that needs to be in French!
Thank you!