error 2424

cybertyk

Registered User.
Local time
Today, 22:25
Joined
Jul 7, 2010
Messages
49
ok i have a datasheet and on the datasheet is the company name, when i click the company name a form loads with the detials of the company

Code:
Private Sub Company_Name_Click()
DoCmd.OpenForm "frmCustomerDetails", , , "[ID]=" & Me.ID
End Sub
is the code i use to run this, how ever after i alter the datasheet (change the record source using a search code,) it tells me that it cant run the code due to a run time error 2424 "the expression has a field control or propity name that database cant find

any ideas have i done something wrong
 

Users who are viewing this thread

Back
Top Bottom