G
Guest
I have a main form with yes/no controls. I'd like Access to create a new
record in the subform of another form (in the background) when the user
clicks on one of the yes/no controls. Here's an if statement that I've tried
out thus far:
ConceptLayoutsLA = Name of yes/no control
Plan Status = Name of other form
Plan_Status = Control name of the subform on "Plan Status"
If ConceptLayoutsLA Then
DoCmd.OpenForm "Plan Status", acNormal, , , acFormEdit, acHidden
Forms("Plan Status").SetFocus
DoCmd.GoToRecord , Plan_Status, acNewRec
Forms("Plan Status").Plan_Status.Form.Combo126 = "Concept Layouts"
DoCmd.Close acForm, "Plan Status", acSaveYes
Else
Exit Sub
End If
This works, but on the click event you see the record for a second then it
closes. Is there a way to do this, so it happens all in the background.
Thanks in advance.
Neil Cash
record in the subform of another form (in the background) when the user
clicks on one of the yes/no controls. Here's an if statement that I've tried
out thus far:
ConceptLayoutsLA = Name of yes/no control
Plan Status = Name of other form
Plan_Status = Control name of the subform on "Plan Status"
If ConceptLayoutsLA Then
DoCmd.OpenForm "Plan Status", acNormal, , , acFormEdit, acHidden
Forms("Plan Status").SetFocus
DoCmd.GoToRecord , Plan_Status, acNewRec
Forms("Plan Status").Plan_Status.Form.Combo126 = "Concept Layouts"
DoCmd.Close acForm, "Plan Status", acSaveYes
Else
Exit Sub
End If
This works, but on the click event you see the record for a second then it
closes. Is there a way to do this, so it happens all in the background.
Thanks in advance.
Neil Cash