Quote:
> Just add a line Me.Code.Undo to erase the user's input as part of the
> Else.
I thought that Cancel=True took care of that, so there would be nothing to
undo. I added Me.Code.Undo and it did not change anything. I tried it before
and after the cancel=true line.
Quote:
> Note that # is a wildcard, matching any numeric digit. If you want a
> letter followed by # you must use
> LIKE "[A-Z][#]"
My code without the brackets around the # works fine. I have tried all
possible entries, and it accepts any letter or any letter followed by any
single digit #. Note that I coppied this line from code that I believe u
originally gave to me in this ng: Like "[A-Z][A-Z][A-Z]###" which has been
working exillently.
I am able to add code to deal with this extra message:
If Err.Number = 0 then
do not show message, just continue
end if
BUT something tells me that I should not have to do this. I have used this
code before, and cancel=true always finished it. Maybe since this is an
Index (required field) maybe this is the problem.