Rich,
I could not get that to work. So I now am running a query to append the new record to the table:
Dim stDocName As String
Dim stLinkCriteria As String
Dim intNum As Integer
'Save the current record
DoCmd.RunCommand acCmdSaveRecord
'Run a query to add the new record to the table (tblProspects)
DoCmd.OpenQuery "InsertNewSBDProspects", acViewNormal, acAdd
'Set the doc name to the form
stDocName = "frmSBDProspects"
'set an integer to the case track number that I just entered.
intNum = Forms.frmNewCaseTrack.[Case Track Nbr]
intNum = Me![Case Track Nbr]
'Set the link criteria to the requested number
stLinkCriteria = ([Case Track Nbr] = " & intNum & ")
'Open the form that has the requested number.
DoCmd.OpenForm stDocName, , , stLinkCriteria
I get the new case track number added to the table but when I try to open the form to look at the new case I get an error '6' overflow.
