I have created a form and from the main menu I click a button and it opens my form so I can enter new records. The Data Entry is set to true so that i can do this.
I would like to use the same form later in the database to recall my entries and my using the following code I double click on a field (machine) and it should bring up my form which i can view.
However I need the form to have DataEntry = False as otherwise I get an empty form. how can i do this. I entered in the code in the above
but this did not work.
Any help appreciated.
Thanks
Christine.
I would like to use the same form later in the database to recall my entries and my using the following code I double click on a field (machine) and it should bring up my form which i can view.
Code:
Private Sub machine_DblClick(Cancel As Integer) Dim gstrwhereid As String gstrwhereid = "[urn] = " & Me!urn 'will open form where id matches line clicked DoCmd.OpenForm FormName:="frm_timesheet_header", wherecondition:=gstrwhereid DoCmd.Close acForm, Me.Name End Sub
Code:
Me.Dataentry = false
Any help appreciated.
Thanks
Christine.
Comment