Hi all,
I've got a database that I have been developing for a little while. About 12 different users have been entering data in it for the last two years.
The main table I have is called "Project Main" where project details get specified. Tied to this table I have another one that is called "Project History", where the development of the project is recorded. One of the fields in that table includes current project status, such as "In progress" or "shipping" or "waiting for production"
Elsewhere in the database I have a query to help me find out what the current status of any project is. To do it, this query basically looks for the "last" history comment, last date and last status from the Project History table along with some other info from the Project Main table (see attached file). I use a combo box to define the status I am searching for.
This works well, except that on occasion, it seems like a particular project gets a status assigned to it at one point in time, but even if a new history comment and a new status is assigned to it later on, the query still returns the earlier status and comment, as if it did not see the new comment and status, which I have verified is in the Project History table. This means that I may add a comment to a project saying "product received" and change the status to "shipping" but if I run the query and look for projects that are "shipping", it may not find it. However if I run the query looking for projects that are "waiting for production" (earlier status) it will show up.
This only happens with a few projects not all projects, and it seems like when this happens with any particular project, it does not matter how many times the status is updated...the query just does not find it under any new status, only the old one.
It seems totally random what projects get affected by this, but once they are affected once, they are affected forever...
What is happening?
mafhobb
I've got a database that I have been developing for a little while. About 12 different users have been entering data in it for the last two years.
The main table I have is called "Project Main" where project details get specified. Tied to this table I have another one that is called "Project History", where the development of the project is recorded. One of the fields in that table includes current project status, such as "In progress" or "shipping" or "waiting for production"
Elsewhere in the database I have a query to help me find out what the current status of any project is. To do it, this query basically looks for the "last" history comment, last date and last status from the Project History table along with some other info from the Project Main table (see attached file). I use a combo box to define the status I am searching for.
This works well, except that on occasion, it seems like a particular project gets a status assigned to it at one point in time, but even if a new history comment and a new status is assigned to it later on, the query still returns the earlier status and comment, as if it did not see the new comment and status, which I have verified is in the Project History table. This means that I may add a comment to a project saying "product received" and change the status to "shipping" but if I run the query and look for projects that are "shipping", it may not find it. However if I run the query looking for projects that are "waiting for production" (earlier status) it will show up.
This only happens with a few projects not all projects, and it seems like when this happens with any particular project, it does not matter how many times the status is updated...the query just does not find it under any new status, only the old one.
It seems totally random what projects get affected by this, but once they are affected once, they are affected forever...
What is happening?
mafhobb