AngelMiguel
New member
- Local time
- Today, 11:45
- Joined
- Nov 2, 2018
- Messages
- 11
Greetings,
Problem: error 3270 property not found
Explanation: When the error occurs it does not jump to the error handling line.
Hardware: 64 bits
Software: win64 + office365
Function GetPropertyString(PropertyName As String) As String
Dim prp As DAO.Property
On Error GoTo Property_Errors
GetPropertyString = CurrentDb.Properties(PropertyName)
On Error GoTo 0
Exit Function
Property_Errors:
If Err = 3270 Then
Set prp = CurrentDb.CreateProperty(PropertyName, dbText, " ", False)
CurrentDb.Properties.Append prp
GetPropertyString = " "
Else
MsgBox "Property creation error, no. : " & Err, vbCritical, " Balances".
End If
End Function
Problem: error 3270 property not found
Explanation: When the error occurs it does not jump to the error handling line.
Hardware: 64 bits
Software: win64 + office365
Function GetPropertyString(PropertyName As String) As String
Dim prp As DAO.Property
On Error GoTo Property_Errors
GetPropertyString = CurrentDb.Properties(PropertyName)
On Error GoTo 0
Exit Function
Property_Errors:
If Err = 3270 Then
Set prp = CurrentDb.CreateProperty(PropertyName, dbText, " ", False)
CurrentDb.Properties.Append prp
GetPropertyString = " "
Else
MsgBox "Property creation error, no. : " & Err, vbCritical, " Balances".
End If
End Function