I’m telling you where to fish, but you’re asking me for the fish... ;)
In code window, move the cursor over DoCmd.OpenForm and press F1. Read what OpenArgs is and then click on OpenArgs help page, there’s a sample code too!
Private Sub com1_Click()
DoCmd.OpenForm "frmSell", , , , ...