By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,662 Members | 1,758 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,662 IT Pros & Developers. It's quick & easy.

Help with runtime error 2115

P: 55
I have 2 combo boxes which can be used to set an employee's availability and Salary type on an employees form in access.
I have sub which changes availability to “Full time”, if the salary type is “Retainer” ;but when I do this I keep getting Error 2115 : The macro or function set to the BeforeUpdate or ValidationRule property for this field is preventing Microsoft Access from saving the data in the field

Expand|Select|Wrap|Line Numbers
  1. Private Sub SalaryType_Click()
  2.   SalaryType.SetFocus
  3.   If SalaryType.Text = "Retainer" Then
  4.     Availability.SetFocus
  5.     Availability.Text = "Full Time"
  6.   End If
  7. End Sub
Jul 24 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 31,271
What type of controls are [SalaryType] and [Availability]?
Jul 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.