Hi
I current have this piece of code on a pop up form as part of the save new Scheme action.
Dim HldSID As String
HldSID = Me.SchemeID
Forms![FrmSchemes].Recordset.FindFirst "[SchemeID] = " & HldSID
DoCmd.Close acForm, Me.Name
This code finds the new record on the FrmSchemes so works fine.
I now what to add some changes to it so that the HldSID = two pieces of information. I have tried this
Dim HldSID As String
HldSID = Me.SchemeID And Me.PhaseID
Forms![FrmSchemes].Recordset.FindFirst "[SchemeID]And[PhaseID]= " & HldSID
DoCmd.Close acForm, Me.Name
But I can't get it to work, any thoughts please
Thanks
CNEILL
I current have this piece of code on a pop up form as part of the save new Scheme action.
Dim HldSID As String
HldSID = Me.SchemeID
Forms![FrmSchemes].Recordset.FindFirst "[SchemeID] = " & HldSID
DoCmd.Close acForm, Me.Name
This code finds the new record on the FrmSchemes so works fine.
I now what to add some changes to it so that the HldSID = two pieces of information. I have tried this
Dim HldSID As String
HldSID = Me.SchemeID And Me.PhaseID
Forms![FrmSchemes].Recordset.FindFirst "[SchemeID]And[PhaseID]= " & HldSID
DoCmd.Close acForm, Me.Name
But I can't get it to work, any thoughts please
Thanks
CNEILL