Private Sub correct_table_of_chart_data()
On Error GoTo Err_convert_Click
table_is = Me.RecordSource
Me.RecordSource = "chart_data"
'''MsgBox "Before Convert Pie Title" + Pie
If Not (Command_LAN.Caption = "ENGLISH") Then
Select Case Trim(Pie)
Case "äãæÏÇÑ ÏÇíÑå Çí ÝÚÇá ÊÑíä ˜ÊÇÈ ÝÇíá ÇãÇäÊ"
Pie = "Pie Chart of Activest Book in Lend file"
Case "äãæÏÇÑ ÏÇíÑå Çí ÝÚÇá ÊÑíä Óí Ïí ÝÇíá ÇãÇäÊ"
Pie = "Pie Chart of Activest Cd in Lend file"
Case "äãæÏÇÑ ÏÇíÑå Çí ˜ÊÇÈ åÇí ÇãÇäí ÇäÊÎÇÈí"
Pie = "Pie Chart of Selected Books in Lend file"
Case "äãæÏÇÑ ÏÇíÑå Çí Óí Ïí åÇí ÇãÇäí ÇäÊÎÇÈí"
Pie = "Pie Chart of Selected Cds in Lend file"
End Select
End If
If Command_LAN.Caption = "ENGLISH" Then
Select Case Trim(Pie)
Case "Pie Chart of Activest Book in Lend file"
Pie = "äãæÏÇÑ ÏÇíÑå Çí ÝÚÇá ÊÑíä ˜ÊÇÈ ÝÇíá ÇãÇäÊ"
Case "Pie Chart of Activest Cd in Lend file"
Pie = "äãæÏÇÑ ÏÇíÑå Çí ÝÚÇá ÊÑíä Óí Ïí ÝÇíá ÇãÇäÊ"
Case "Pie Chart of Selected Books in Lend file"
Pie = "äãæÏÇÑ ÏÇíÑå Çí ˜ÊÇÈ åÇí ÇãÇäí ÇäÊÎÇÈí"
Case "Pie Chart of Selected Cds in Lend file"
Pie = "äãæÏÇÑ ÏÇíÑå Çí Óí Ïí åÇí ÇãÇäí ÇäÊÎÇÈí"
Case "Pie Chart of Activest Members in Lend file"
Pie = "ãæÏÇÑ ÏÇíÑå Çí ÝÚÇá ÊÑíä ÇÚÖÇÁ ÝÇíá ÇãÇäÊ"
''''''Case Else
'''''''''''''''''''''''MsgBox "Nothing done for FARSI pie title"
End Select
End If
'''MsgBox "Afther Convert Pie Title" + Pie
'''MsgBox "Before Convert Bar Title" + Bar
If Not (Command_LAN.Caption = "ENGLISH") Then
Select Case Trim(Bar)
Case "äãæÏÇÑ ãíáå Çí ÝÚÇá ÊÑíä ÇÚÖÇÁ ÝÇíá ÇãÇäÊ"
Bar = "Bar Chart of Activest Members in Lend file"
Case "äãæÏÇÑ ãíáå Çí ÝÚÇá ÊÑíä ˜ÊÇÈ åÇí ÝÇíá ÇãÇäÊ"
Bar = "Bar Chart of Activest Books in Lend file"
Case "äãæÏÇÑ ãíáå Çí ÝÚÇá ÊÑíä Óí Ïí åÇí ÝÇíá ÇãÇäÊ"
Bar = "Bar Chart of Activest Cds in Lend file"
Case "äãæÏÇÑ ãíáå Çí ˜ÊÇÈ åÇí ÇãÇäí ÇäÊÎÇÈí"
Bar = "Bar Chart of Selected Books in Lend file"
Case "äãæÏÇÑ ãíáå Çí Óí Ïí åÇí ÇãÇäí ÇäÊÎÇÈí"
Bar = "Bar Chart of Selected Cds in Lend file"
''''''Case Else
''''''''''''''''''''''MsgBox "Nothing done for ENGLISH bar title"
End Select
End If
If Command_LAN.Caption = "ENGLISH" Then
Select Case Trim(Bar)
Case "Bar Chart of Activest Members in Lend file"
Bar = "äãæÏÇÑ ãíáå Çí ÝÚÇá ÊÑíä ÇÚÖÇÁ ÝÇíá ÇãÇäÊ"
Case "Bar Chart of Activest Books in Lend file"
Bar = "äãæÏÇÑ ãíáå Çí ÝÚÇá ÊÑíä ˜ÊÇÈ åÇí ÝÇíá ÇãÇäÊ"
Case "Bar Chart of Activest Cds in Lend file"
Bar = "äãæÏÇÑ ãíáå Çí ÝÚÇá ÊÑíä Óí Ïí åÇí ÝÇíá ÇãÇäÊ"
Case "Bar Chart of Selected Books in Lend file"
Bar = "äãæÏÇÑ ãíáå Çí ˜ÊÇÈ åÇí ÇãÇäí ÇäÊÎÇÈí"
Case "Bar Chart of Selected Cds in Lend file"
Bar = "äãæÏÇÑ ãíáå Çí Óí Ïí åÇí ÇãÇäí ÇäÊÎÇÈí"
''''''Case Else
'''''''''''''''''''''''''''MsgBox "Nothing done for FARSI bar title"
End Select
End If
'''MsgBox "Afther Convert Bar Title" + Bar
If Trim(other_txt) = "ÓÇíÑ" Then
other_txt = "Other"
Else
other_txt = "ÓÇíÑ"
End If
Me.RecordSource = table_is
Err_convert_Click:
If (Err.number = "2107") Or (Err.number = 0) Then
If Command_LAN.Caption = "ENGLISH" Then
'MsgBox " ÎØÇí ˜äÊÑá ÔÏå ", vbExclamation, "ÎØÇ"
Else
'MsgBox "The Controled error.", vbExclamation, "ERROR"
End If
Exit Sub
Else
If Command_LAN.Caption = "ENGLISH" Then
Q1 = " ÎØÇ ÔãÇÑå "
Q2 = Str(Err.number)
Q3 = " ÑÎ ÏÇÏå "
MsgBox Q1 + Q2 + Q3, vbExclamation, "ÎØÇí ÓíÓÊãí"
Else
MsgBox " Error number " + Str(Err.number) + " has happen ", vbExclamation, "System Error"
End If
End If
End Sub
باز هم از دقت و توجهی که نسبت به مشکل من خواهید داشت تشکر فراوان دارم.شاد و سلامت باشید.:20: