Read-only error

K

Karl H

Hi,
I copied a form & table to a different access project, renamed the table,
but had the form data source point to the correctly named table. The controls
worked fine for a while, but now I get a "Runtime 2135" error saying this
property is read-only and can't be set. The "help" button shows a blank
screen.

The control simply increments the value in a text box by one. The value in
the text box cannot be changed by keyboard input.

On Explorer, the file is not designated as "Read-only" and I can add new
records to the form.
The code, which works on the original form, is:

'increments sales by 1 per click
Private Sub cmdPlus1_Click()
Dim pint As Integer
pint = Me.Sales.Value
Sales.Value = pint + 1
Me.txtSales.SetFocus
txtSales.Text = Sales.Value
End Sub

Thank you in advance for your help,
Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top