If I open in the code from a form, another form then I can't change the fields. If I close the first form then it is possible to change the fields. What can I do to let the first form open an stiil change the values of the fields in the second form?
stDocName = "frmOntvangsten"
DoCmd.OpenForm stDocName
Form_frmOntvangsten.VerkoopKassaId.SetFocus
DoCmd.FindRecord gintTicketnr, , , , , , True
Form_frmOntvangsten.txtOntvangenBedrag.SetFocus
Exit Sub
stDocName = "frmOntvangsten"
DoCmd.OpenForm stDocName
Form_frmOntvangsten.VerkoopKassaId.SetFocus
DoCmd.FindRecord gintTicketnr, , , , , , True
Form_frmOntvangsten.txtOntvangenBedrag.SetFocus
Exit Sub