Hi
I have tried both suggestions but I am struggling.
Basically, I want agents to be able to add a call record after they have made contact with a prospect. They look at the prospect details on a form called ContactForm which is bound to ContactTbl table. They click on a control which takes them to a different form, filtered to show all the call records against that prospect:
Private Sub Command59_Click()
On Error GoTo Err_Command59_Click
'This code takes the user to the call records for the individual they are looking at
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "CallRecordFrm"
stLinkCriteria = "[ESPId]=" & Me.ESPID
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
The second form is CallRecordFrm bound to table CallRecordTbl.
Both tables have ESPID as a unique reference which is what is used to filter the recordset.
What I am trying to do is open the call records with a new record open that is pre-populated with the ESPID (which I can use to display the prospect's name etc as a concatenated field within a combobox) so that they can complete the record without having to navigate to a blank record, find the prospect in a combo box, etc.
I am sure I just being really thick, but I am stuck.