|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to display value as Jan, Feb... on report?
Hi..
I have tblWorkHistory with value (01,02,...12). I want to display this value as Jan, Feb... in report. As for example, if the value in the table is "01", then it will display as "Jan" in the report. Is it possible? this is the code.. Code:
Private Sub Report_Activate()
If Me.MonthFrom.Value = "01" Then
Me.MonthFrom = "Jan"
ElseIf Me.MonthFrom.Value = "02" Then
Me.MonthFrom = "Feb"
......
......
End If
End Sub
but the problem is, when i run the report..this is the error, "You can't assign a value to this object". I just want to display as "Jan" in the report if the value is "01" not change the value in the table. Any idea? thanx in advance.. ![]() |
|
#2
|
|||
|
|||
|
Hello awiezzz!
Look at "DemoMonthA2000.mdb"
|
|
#3
|
|||
|
|||
|
change control name to another name and try other functions like choose and mid
|
|
#4
|
|||
|
|||
|
Hi all..
thanx for the reply..it works.. ..thanx again.. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > How to display value as Jan, Feb... on report? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|