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
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