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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top