Table locked when trying to print single report from form

SG1CSIfan

Registered User.
Local time
Today, 08:52
Joined
Jul 9, 2013
Messages
13
I have a database that has all the employees in my company with basic information. I have a auto number set up for each person. I also have on my form a subform with information about the employee's history in the company. I have bin trying for the last couple weeks, to put a button on my form, that will open up the custom report I made for the one employee, in print preview mode. Everything I have tried gives me a error. The main error I get is The database engine could not lock the table "EmployeeT" because it is already in use by another person or process. If I open the report by itself, then I get all my employees. I am looking to just open a single report from the form I am currently looking at.

I have 2 tables. One Named EmployeeT with all the employees basic information. I have a auto number with the field name EmployeeID.
The 2nd table is called IncidentT, which has its own auto number, and records all the problem/incidents with the employee. For example, lates, if the did not show up, or cancelled out of that day, etc. I have the 2 tables sharing the EmployeeID, sharing the relationship. My main form, has a lot of my information and a subform, Like i said. But no matter what I try I can get rid of that error. I would appriate any advice on this situation.

The only way I got it to work without the error, is when I go into properties and change the Record Set Type to Snapshot on both the form and subform.
but then I can't edit the form or subform anymore. This is driving me nuts, lol.:banghead::confused::banghead::confused:
Michael
 
Sry about that.
 

Users who are viewing this thread

Back
Top Bottom