Hi guys,
I have a form (FormA) that after a couple of criteria filters, displays failure codes for a system. The user then double clicks a code and a popup form (FormB) appears that is half filled in, and the user finishes it off and submits a change in status of that code. Back on FormA, a list box is requeried and displays which codes have been changed.
What I need to do is stop users repeating a code change. I have a TextBox named CodeChoice (displays the code selected), and the ListBox is named CodesDone. If the value in CodeChoice matches any of the codes listed in CodesDone, then I would like a msgbox to appear and stop FormB appearing.
Can any one give me an idea of the vba code that will do this, or point me in the right direction. This is the last part of my project, and it would be fantastic to get it done (its driving me nuts!).
Cheers, Supanoods B-)
"If it aint broke - dont fix it!
I have a form (FormA) that after a couple of criteria filters, displays failure codes for a system. The user then double clicks a code and a popup form (FormB) appears that is half filled in, and the user finishes it off and submits a change in status of that code. Back on FormA, a list box is requeried and displays which codes have been changed.
What I need to do is stop users repeating a code change. I have a TextBox named CodeChoice (displays the code selected), and the ListBox is named CodesDone. If the value in CodeChoice matches any of the codes listed in CodesDone, then I would like a msgbox to appear and stop FormB appearing.
Can any one give me an idea of the vba code that will do this, or point me in the right direction. This is the last part of my project, and it would be fantastic to get it done (its driving me nuts!).
Cheers, Supanoods B-)
"If it aint broke - dont fix it!