S
SEAN DI''''ANNO
Hi,
I found this article about validating Postcodes and would really like to use
it.
http://www.mvps.org/access/modules/mdl0063.htm
I have copied the code to a new module and on my Data Input Form and have
used this code for the field Postcode;
Private Sub Postcode_BeforeUpdate(Cancel As Integer)
If Not rgxValidate([Postcode], rgxZIP_UK) Then
MsgBox "I don't like " & Me.Postcode
Cancel = True
End If
End Sub
However when I compile, it tells me that rgxvalidate is a ambiguous name
even though, I have only copied it once. Am I not calling the function
properly? Can anyone please tell me how I can use this function on my form
please.
I found this article about validating Postcodes and would really like to use
it.
http://www.mvps.org/access/modules/mdl0063.htm
I have copied the code to a new module and on my Data Input Form and have
used this code for the field Postcode;
Private Sub Postcode_BeforeUpdate(Cancel As Integer)
If Not rgxValidate([Postcode], rgxZIP_UK) Then
MsgBox "I don't like " & Me.Postcode
Cancel = True
End If
End Sub
However when I compile, it tells me that rgxvalidate is a ambiguous name
even though, I have only copied it once. Am I not calling the function
properly? Can anyone please tell me how I can use this function on my form
please.