Button to Append then Open Form to Record

H

HelpMe!

I am trying to create a button that appends the TrackingID field to my table
"tblContractPOTracking" then opens form "frmContractPOTracking" to the
TrackingID that was just appended. Does that make sense? What doe would i
enter and where?

the Private Sub Command31_Click()
On Error GoTo Err_Command31_Click

Dim stDocName As String

stDocName = "AppendTrackingId"
DoCmd.OpenQuery stDocName, acNormal, acEdit

Exit_Command31_Click:
Exit Sub
 
Top