A
Alex
I've tried writing all kinds of code in my control AfterUdate event on my
form that will update all the bound fields in my open record. I have tblOne
with fieldRefPart and tblTwo with fieldRefPart, fieldCost, fieldNumber. My
query joins bothRefPart fields. I have a combo box on my form that is bound
to tblOne fieldRefPart. I need the fieldCost and fieldNumber on my form to
update immediately when a new Refpart is selected. I would think it would be
very simple. I've tried: If Me.Dirty Then Me.Dirty = False and Me.Dirty =
False. I realize the record is being saved, but the fields are not
refreshing on the open form.
So I tried:
If Me.Dirty Then Me.Dirty = False
If IsOpen("NewPartInputfrm") Then
Forms!NewPartInputfrm.Refresh
Forms!NewPartInputfrm.Requery
DoCmd.OpenForm "NewPartInputfrm", acNormal, , strWhere
This refreshes the form, but moves to the first record. Can someone please
tell me exactly the code to update my record and refresh the form while
keeping the form open to the current record? Thank you very much.
form that will update all the bound fields in my open record. I have tblOne
with fieldRefPart and tblTwo with fieldRefPart, fieldCost, fieldNumber. My
query joins bothRefPart fields. I have a combo box on my form that is bound
to tblOne fieldRefPart. I need the fieldCost and fieldNumber on my form to
update immediately when a new Refpart is selected. I would think it would be
very simple. I've tried: If Me.Dirty Then Me.Dirty = False and Me.Dirty =
False. I realize the record is being saved, but the fields are not
refreshing on the open form.
So I tried:
If Me.Dirty Then Me.Dirty = False
If IsOpen("NewPartInputfrm") Then
Forms!NewPartInputfrm.Refresh
Forms!NewPartInputfrm.Requery
DoCmd.OpenForm "NewPartInputfrm", acNormal, , strWhere
This refreshes the form, but moves to the first record. Can someone please
tell me exactly the code to update my record and refresh the form while
keeping the form open to the current record? Thank you very much.