Hi..I need a help on my looping:
In the main form, I have textbox MID=M123456 and CAV=4
In sub form,
a. I have CID and DateTime.
b. I add MCID =Count(MID)
I want to do a looping for CID <= CAV
if >4,msgbox "More than CAV" then undo
if <>4,msgbox "Less than CAV" then MID will lock...