L
ladybug via AccessMonster.com
I have two cmd buttons. One to allow users to add, edit, and delete data
from "frmView." The other button to not allow users to add, edit, and delete
data from "frmView." The one where I allow I just have the properties to
allow this.
I have the following code in the cmd button where I do not want to allow
users to add, edit, and delete data:
On Error GoTo Err_Command15_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmView"
stLinkCriteria = "[Number]=" & Me![cboSearch]
DoCmd.OpenForm stDocName, , , stLinkCriteria
With Forms(stDocName)
.AllowEdits = False
.AllowDeletions = False
.AllowAdditions = False
End With
There are multiple subforms on frmView. This code does not allow users to
add, edit, or delete from "frmView." However,the subforms still allow you to
edit, add, and delete. Can someone help me with the code above and how to
add the subforms? A couple examples of the subform names are "sfrmProducts"
and "sfrmClosed"
from "frmView." The other button to not allow users to add, edit, and delete
data from "frmView." The one where I allow I just have the properties to
allow this.
I have the following code in the cmd button where I do not want to allow
users to add, edit, and delete data:
On Error GoTo Err_Command15_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmView"
stLinkCriteria = "[Number]=" & Me![cboSearch]
DoCmd.OpenForm stDocName, , , stLinkCriteria
With Forms(stDocName)
.AllowEdits = False
.AllowDeletions = False
.AllowAdditions = False
End With
There are multiple subforms on frmView. This code does not allow users to
add, edit, or delete from "frmView." However,the subforms still allow you to
edit, add, and delete. Can someone help me with the code above and how to
add the subforms? A couple examples of the subform names are "sfrmProducts"
and "sfrmClosed"