Thank you for your response, but I am afraid still does not work.
I set it up like this:
DoCmd.OpenForm "GASTOS_EDITAR", , , "editar_id = " & Me.Gastid
it asks me to enter parameter value for field "editar_id", and no matter if I enter the number manually, it opens the form but all blank, no...