G
Guest
Hello:
I have an Access data project that is connected to a SQL Server 200 database.
I have two forms: Employees and Employee List:
Employee List has a list box on it. In the double click event, I have
placed the following code:
DoCmd.OpenForm "frmEmployees", , , , , , "EmployeeID =" &
Me.lstEmployees.Column(3)
On the On Load Event of the Employee Form, I have placed the following code:
Me.EmployeeID = Me.OpenArgs
When I double click on an entry in my list bix, the Employee form opens but
it doesn't navigate to my selected record. Instead, I get the following
error:
Runtime Error '2147352567 (80020009)':
The field EmployeeID is read only.
The employee id field is an Int, Identity field and is the primary key.
Any ideas on what I'm doing wrong.
Thanks
Brennan
I have an Access data project that is connected to a SQL Server 200 database.
I have two forms: Employees and Employee List:
Employee List has a list box on it. In the double click event, I have
placed the following code:
DoCmd.OpenForm "frmEmployees", , , , , , "EmployeeID =" &
Me.lstEmployees.Column(3)
On the On Load Event of the Employee Form, I have placed the following code:
Me.EmployeeID = Me.OpenArgs
When I double click on an entry in my list bix, the Employee form opens but
it doesn't navigate to my selected record. Instead, I get the following
error:
Runtime Error '2147352567 (80020009)':
The field EmployeeID is read only.
The employee id field is an Int, Identity field and is the primary key.
Any ideas on what I'm doing wrong.
Thanks
Brennan