T
TC
Do the data entry through a form. Code the form's Form_Error event. That
event is fired when the duplicate error occurs. Find out what error number
is used for that event (using a msgbox in the event). Then intercept that
number & provide your own message.
If by "macro" you >really mean< macro, forget it. Except for certain special
purposes, no-one uses macros these days. Learn how to use the VBA language
to do what you need. In Access 97, there's lots of information 9& a few good
examples) in online help. In later versions, I gather te help is not so
good. And/or get an Access book.
HTH,
TC
event is fired when the duplicate error occurs. Find out what error number
is used for that event (using a msgbox in the event). Then intercept that
number & provide your own message.
If by "macro" you >really mean< macro, forget it. Except for certain special
purposes, no-one uses macros these days. Learn how to use the VBA language
to do what you need. In Access 97, there's lots of information 9& a few good
examples) in online help. In later versions, I gather te help is not so
good. And/or get an Access book.
HTH,
TC