The variable is a string, ID is an integer.
DoCmd.OpenForm stDocName, , , stNewRecord
could try: DoCmd.OpenForm stDocName, , , "[ID] = " & Me.txtID
If you want to pass parameters:
DoCmd.OpenForm "frmAddLineItems", acNormal, , , acFormEdit, acDialog, "RequestID_FK|" & RequestID
Then, in the...