shanegroff
New member
- Local time
 - Today, 01:28
 
- Joined
 - Jan 18, 2019
 
- Messages
 - 12
 
You don't have to use variables.  Your code in cmdClose_Click in the Form_Incidents module says:
Call LogError(Err.Number, Err.descripton, "Incidents - check_values")
If you change that to
Call LogError(Err.Number, Err.Description, "Incidents - check_values")
Then it will work. The reason making variables worked is that Description was spelled correctly.
Otherwise it was correctly complaining that Err doesn't have a property called 'descripton'.
Note that the fact that VB didn't auto-capitalize for you was a hint that you had misspelled the property name.
 Call LogError(Err.Number, Err.descripton, "Incidents - check_values")
If you change that to
Call LogError(Err.Number, Err.Description, "Incidents - check_values")
Then it will work. The reason making variables worked is that Description was spelled correctly.
Otherwise it was correctly complaining that Err doesn't have a property called 'descripton'.
Note that the fact that VB didn't auto-capitalize for you was a hint that you had misspelled the property name.