I have a checklist type form where user enter their initials to signoff tasks that they have performed. Some times a checklist goes into a rework where certian steps or tasks need to be repeated. When the step is repeated someone else will complete that step and they will enter their initials. So as an example say step1 has the initials 'aa' entered and the form goes into rework. step 1 will be changed by code to '1- aa' the 1- means its a rework and allows someone else to double click that step and enter their initials
to it as they did the rework so now step1 = 'aa, bb' and and the 1- is gone and I have the initials of both people that complted this task. It is possible for the rework to happen again and then a 3rd set of initials would be entered.
Now here is my problem. If the step is in rework and the user does not complete the step and they close the form I want to remove their initals and keep the step in rework. so '1- aa, bb' would become 'aa, bb' then the incomplete would put it back to '1- aa. I can't figure out how to drop the last set of initials entered.
This code puts the step into rework.
This is the code on the double click line for the step
The Frm-initialopens and I have this code in the forms property ON OPEN
The user then enters their initials in the newinitials field on the form and click an update button. This is the code on the update button
So now where my problem comes in. I can catch the incomplete entry, I can put the 1- back in the initials line and keep the step in rework. But I cant figure out how to drop those last initials entered.
I hope i have explained my problem well enough its hard to explain these things.
and thank you for those who read this long post.
jon
Code:
Now here is my problem. If the step is in rework and the user does not complete the step and they close the form I want to remove their initals and keep the step in rework. so '1- aa, bb' would become 'aa, bb' then the incomplete would put it back to '1- aa. I can't figure out how to drop the last set of initials entered.
This code puts the step into rework.
Code:
If Not IsNull(Me.step3) And Left(Me.step3, 2) <> "1-" Then
Me.[step3] = "1" & "- " & Me.[step3]
This is the code on the double click line for the step
Code:
If (Me.[ReworkFLAG] = 1) And (Me.[step3] Like "1-*") And IsNull(Me.[CompleteCE]) Then
DoCmd.OpenForm "Frm-initals"
The Frm-initialopens and I have this code in the forms property ON OPEN
Code:
Me.txt1 = Forms![frm-mainform].ActiveControl
If Me.txt1 Like "1-*" Then
txt1 = Trim(Mid([txt1], 3))
Else
End If
Code:
Me.[txt1] = Me.[txt1] & ", " & Me.[newinitals]
Forms![frm-Mainform].ActiveControl = Me.txt1
DoCmd.close acForm, "Frm-initals"
So now where my problem comes in. I can catch the incomplete entry, I can put the 1- back in the initials line and keep the step in rework. But I cant figure out how to drop those last initials entered.
I hope i have explained my problem well enough its hard to explain these things.
and thank you for those who read this long post.
jon