hi guys can anyone SPOT the error
Private Sub cmdOK_Click()
Form_Company.RecordSource = "SELECT * FROM Company WHERE CompanyID = '" & Me.CompanyID & "' "
DoCmd.Close
End Sub
what i am trying to do is to make the company form goto the same record that I am looking at on different form but I get the Above error '2001' you canceled the previous operation..Any ideas what acces is moaning on about..
Private Sub cmdOK_Click()
Form_Company.RecordSource = "SELECT * FROM Company WHERE CompanyID = '" & Me.CompanyID & "' "
DoCmd.Close
End Sub
what i am trying to do is to make the company form goto the same record that I am looking at on different form but I get the Above error '2001' you canceled the previous operation..Any ideas what acces is moaning on about..