Hi Everyone.
I have a main form with a subform, they are bound with a common key (linked child and master fields).
After changing a record in the main form I try to execute
Which is:
but the subform stays on the same record...
I tried to put "DoEvents" before the code, with no success.
After changing the record, when I execute this function by a command button manually, it does work...
Does anyone know how to solve this?
Much thanks,
inso18
I have a main form with a subform, they are bound with a common key (linked child and master fields).
After changing a record in the main form I try to execute
Code:
Call Me.sfrmSubForm.Form.GoToLastRecord
Code:
Public Sub GoToLastRecord()
DoCmd.GoToRecord , , acLast
End Sub
I tried to put "DoEvents" before the code, with no success.
After changing the record, when I execute this function by a command button manually, it does work...
Does anyone know how to solve this?
Much thanks,
inso18