Hi Guys I have two forms.
one form is a form to create in order with OrderID
and second form is to edit the order with more details and stuff
so i made a button in the first form to save the recored and open the same OrderID in the second form to edit, but when it opens i want to move to aouter record using the combo box i have, it just stuck on the first record i open
this is my code from the first form.
one form is a form to create in order with OrderID
and second form is to edit the order with more details and stuff
so i made a button in the first form to save the recored and open the same OrderID in the second form to edit, but when it opens i want to move to aouter record using the combo box i have, it just stuck on the first record i open
this is my code from the first form.
Code:
Private Sub Command130_Click()
DoCmd.RunCommand acCmdSaveRecord
Dim strDocName As String
Dim strWhere As String
strDocName = "OpenActionMihrazFormEdit"
strWhere = "[ActionNumber]=" & Me!ActionNumber
DoCmd.OpenForm strDocName, acNormal, , strWhere
DoCmd.Close acForm, "ActionMihrazForm", acSaveYes
End Sub