NigelFletcher
New member
- Local time
- Today, 14:27
- Joined
- Mar 7, 2019
- Messages
- 5
Sometimes I think my brain just ceases up on me and logic goes out the windows. I wonder if anyone can help me.
I have a form called welcome with has a tabcontrol on it called TabCtl0
On that control I have a page(tab) called Hard-Disks
When clicking on the tabs page "Hard Disks" the form is set to already set to Allowedits = False
I have a button that toggles be allowedits = False and Allowedits = true
Private Sub Command29_Click()
If Command29.Caption = "Locked" Then
Command29.Caption = "Edit"
Me.[Hard-Disks].AllowEdits = True
Else
Command29.Caption = "Locked"
Me.[Hard-Disks].AllowEdits = False
End If
End Sub
But this and many other variations I have tried, errors on the setting the parameter line.
If anyone could show me the right way to do this, I would be exceedingly grateful.
Sorry is this is such a newbie question, but still learning
Many thanks
Nigel
I have a form called welcome with has a tabcontrol on it called TabCtl0
On that control I have a page(tab) called Hard-Disks
When clicking on the tabs page "Hard Disks" the form is set to already set to Allowedits = False
I have a button that toggles be allowedits = False and Allowedits = true
Private Sub Command29_Click()
If Command29.Caption = "Locked" Then
Command29.Caption = "Edit"
Me.[Hard-Disks].AllowEdits = True
Else
Command29.Caption = "Locked"
Me.[Hard-Disks].AllowEdits = False
End If
End Sub
But this and many other variations I have tried, errors on the setting the parameter line.
If anyone could show me the right way to do this, I would be exceedingly grateful.
Sorry is this is such a newbie question, but still learning
Many thanks
Nigel