IIf statement not working, SELECT case instead?
NeoPA,
I think I have made a grave error in the explanation of my problem here.
I'm attaching a copy of the database that ADezii asked for when he fixed my original problem.
The form you would want to look at is the Input Facility Task Reviewer.
The only time a "record" is brand new is when it is entered for the first time via the Task_subform, the "task #" is autogenerated when you click in the Task_subform to add a new task.
Once the task is created, and all information is filled in on both the Task_subform and the Review_subform for it, from that point on, I want the DATEREVIEWASSIG NED after it is entered and DATEREVIEWDUE is calculated to both remain the same for everyone else who will work on that task.
It may be confusing because there is a TASK# field on the Task_subform and a TASK# field on the Review_subform.
We're only concerned about the TASK# field on the Task_subform.
Basically, each Task created on the Task_subform can have several "subtasks", if you will, on the Review_subform. For each one of those "subtasks" I want the DATEREVIEWASSIG NED and DATEREVIEWDUE to be the same as was originally set and not editable.
Hopefully, I'm explaining this better this time.
I also have additional questions: I have a question about when I use the VB code editor, when I start typing in control references and stuff, I don't get the autofill option as I type(i.e.Me.New Record)in some instances, which I guess makes me fill like my code can't be right. Maybe this doesn't matter and I should keep coding without worrying about it.
Also, when creating the Call New_Routine, etc. I'm always confused about how I need to refer to my controls from form to form. You refer to DATEREVIEWASSIG NED as Me.DATEREVIEWAS SIGNED, but I wonder if it matters which form you are on which controls how you should refer to it.
For Example, in ADezii's call for them he put in the DATEREVIEWASSIG NED_AfterUpdate () procedure below.
I've put in Bold the way he referred to it.
If Not IsNull(Forms![Input Facility Task Reviewer]!Task_Subform.F orm![cboTaskType]) And _
Not IsNull(Forms![Input Facility Task Reviewer]!Review_Subform .Form![DATEREVIEWASSIG NED])
Also, your syntax for the actual call of the New_procedure. Is it exactly as it should be? I mean do you use the words "Call New_procedure"? Does the syntax work the same way as a function call does?
Thanks again, especially for your patience!
NeoPA,
I think I have made a grave error in the explanation of my problem here.
I'm attaching a copy of the database that ADezii asked for when he fixed my original problem.
The form you would want to look at is the Input Facility Task Reviewer.
The only time a "record" is brand new is when it is entered for the first time via the Task_subform, the "task #" is autogenerated when you click in the Task_subform to add a new task.
Once the task is created, and all information is filled in on both the Task_subform and the Review_subform for it, from that point on, I want the DATEREVIEWASSIG NED after it is entered and DATEREVIEWDUE is calculated to both remain the same for everyone else who will work on that task.
It may be confusing because there is a TASK# field on the Task_subform and a TASK# field on the Review_subform.
We're only concerned about the TASK# field on the Task_subform.
Basically, each Task created on the Task_subform can have several "subtasks", if you will, on the Review_subform. For each one of those "subtasks" I want the DATEREVIEWASSIG NED and DATEREVIEWDUE to be the same as was originally set and not editable.
Hopefully, I'm explaining this better this time.
I also have additional questions: I have a question about when I use the VB code editor, when I start typing in control references and stuff, I don't get the autofill option as I type(i.e.Me.New Record)in some instances, which I guess makes me fill like my code can't be right. Maybe this doesn't matter and I should keep coding without worrying about it.
Also, when creating the Call New_Routine, etc. I'm always confused about how I need to refer to my controls from form to form. You refer to DATEREVIEWASSIG NED as Me.DATEREVIEWAS SIGNED, but I wonder if it matters which form you are on which controls how you should refer to it.
For Example, in ADezii's call for them he put in the DATEREVIEWASSIG NED_AfterUpdate () procedure below.
I've put in Bold the way he referred to it.
If Not IsNull(Forms![Input Facility Task Reviewer]!Task_Subform.F orm![cboTaskType]) And _
Not IsNull(Forms![Input Facility Task Reviewer]!Review_Subform .Form![DATEREVIEWASSIG NED])
Also, your syntax for the actual call of the New_procedure. Is it exactly as it should be? I mean do you use the words "Call New_procedure"? Does the syntax work the same way as a function call does?
Thanks again, especially for your patience!
Comment