Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
DoCmd.RunCommand acCmdRecordsGoToNew
[blue]Me![purple][b]CheckboxName[/b][/purple] = True[/blue]
[blue] If Me![purple][b]CheckboxName[/b][/purple] = True Then
Me.AllowEdits = False
Me.AllowDeletions = False
Else
Me.AllowEdits = True
Me.AllowDeletions = True
End If[/blue]
[blue]Public Sub UpdateTrue()
Dim SQL As String
SQL = "UPDATE [purple][b]TableName[/b][/purple] SET [purple][b]CheckboxName[/b][/purple] = True;"
DoCmd.RunSQL SQL
End Sub[/blue]
Then laten on you said:PhilWB said:[blue]I would like to be able to have a form that shows past orders as read only, and have a command button on that form that would allow the entry of new orders.[/blue]
Currently, the code I provided locks all saved records for form & subform. [blue]You can only edit new records.[/blue]PhilWB said:[blue] . . . the allow edits and allow additions sort of worked in that it will open a new form, but it is missing the subform that goes with it . . .[/blue]