I am having trouble getting the click event to set the focus back to the parent form.
So I have a form called PrintServerBackups, and a subform called PrintServerCheckList. There are about 40 check boxes on the subform - which is table driven. The subform is simply a list of server names with check boxes in front of each server name.
On the parent form I have a comments box PrintServerBackups!txtComments where my user can put notes.
I would like to populate this text box with the server name and a date stamp by means of appending, when the user clicks the check box next to a server name, so a list of servers and the time stamp is created in the text box.
I set the table field for txtComments to be append only and then
I tried the following to get just one click to work for now, but ultimately I will need it to add to the text box when another check box is checked:
Expand|Select|Wrap|Line Numbers
- Forms!PrintServerBackUps!txtComments.SetFocus = True
- txtComments.Value = "server01: " & now()
Expand|Select|Wrap|Line Numbers
- Me.Forms!PrintServerBackUps!txtComments.SetFocus = True
- Me.txtComments.Value = "server01: " & now()
I had thought about using the =ColumnHistory on this but I don't really understand it well enough to modify it from the standard
Expand|Select|Wrap|Line Numbers
- =ColumnHistory([RecordSource],"txtComments","[ID]=" & Nz([ID],0))