Hi All,
I think I have created a very unique problem for myself. Since I do not know how to write code, I was hoping to do my calculations through queries but I've come to the conclusion...I don't think it's possible.
In one of my forms (Form 1) I am getting information from a combo box and filling a field called [
Replacing] which gives me an inmates name. I am also filling in another field (Date)on the same form using the same combo box. To get that field to populate with the info, I'm using
[Replacing].[Column](2). (2) being
the column with the date. This works well.
This form gets its data from a query that includes data from another table. In this query I have create an expression in a column:
Completion DateateAdd("d",+179,[AdmitDate]). This gives me the date an inmate will be released from custody after they complete the 180 day program. There is another column with an expression in this query:
Date:[Completion Date]-[Referral Date]. This gives me the number of days an inmate will need to wait to get into the program.
My problem is this: The calculations work. They just don't work correctly. For example: If Inmate Jones gets replaced on 10/4/12 by inmate Smith, I want to be able to calculate on Inmate Jones release date. Instead, it pulls in inmate Whites data. Inmate White is the first in the datasheet view. And it just goes down the list.
I've rambled enough. If this makes any sense and you have any words of wisdom, I will certainly welcome them. If you need to see this db, I can send it along as well.
Thank you for any help.