Thanks Allen that worked great. One last question is there a way to make a
user enter a minimum amount of characters, numbers etc in a certain field
before they are allowed to move to the next field?
Use the BeforeUpdate event, and could the length of the input:
Private Sub Text0_BeforeUpate(Cancel As Integer)
If Len(Me.Text0) < 12 Then
Cancel = True
MsgBox "Type at least 12 characters, or press Esc to undo."
End If
End Sub

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Thanks Allen that worked great. One last question is there a way to make a
> user enter a minimum amount of characters, numbers etc in a certain field
[quoted text clipped - 15 lines]
>> >
>> > thanks
Blade370 - 18 Jul 2007 16:32 GMT
Brilliant Allen worked a treat. Sorry to be a pest but I have one last
question. On one of my fields I already have a before update event set up to
check that that field matches another one with the code
Private Sub COURSE_CODE_BeforeUpdate(Cancel As Integer)
If Left(Me.[course Code], 2) <> Me.[SCHOOL] Then
MsgBox "Course Code does not match the school code"
Cancel = True
End If
End Sub
How do I nest two bits of code on this event so that I can use the code you
gave me to stipulate a required field length?
As you have already guessed I a do not use VB.
Thanks Again in advance
> Use the BeforeUpdate event, and could the length of the input:
>
[quoted text clipped - 24 lines]
> >> >
> >> > thanks
Allen Browne - 18 Jul 2007 16:37 GMT
Put both between the Private Sub ... and End Sub lines.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Brilliant Allen worked a treat. Sorry to be a pest but I have one last
> question. On one of my fields I already have a before update event set up
[quoted text clipped - 43 lines]
>> >> > do
>> >> > that?
Blade370 - 19 Jul 2007 10:56 GMT
Cheers Allen that worked a treat.
Many Thanks.
> Use the BeforeUpdate event, and could the length of the input:
>
[quoted text clipped - 24 lines]
> >> >
> >> > thanks