I am new to all this and require a little help if I may.
I am slowly learning Access and ulitmately want to learn to build a DB relying on VB rather than macros. (VB... yet another thing to learn!)
I have a search post code macro running a select query (see attached)
I need to know what condition can I add to the macro to display my own message and stop the macro running?
If I type AJ1 1AJ or JS1 1JS into the post code field and click "Search P/Code" the macro will copy and paste the existing details into the form. If the postal code does not exist I get a number of errors indicating "copy cannot be used now" etc.
Any help would be great. Thanks.
I am slowly learning Access and ulitmately want to learn to build a DB relying on VB rather than macros. (VB... yet another thing to learn!)
I have a search post code macro running a select query (see attached)
I need to know what condition can I add to the macro to display my own message and stop the macro running?
If I type AJ1 1AJ or JS1 1JS into the post code field and click "Search P/Code" the macro will copy and paste the existing details into the form. If the postal code does not exist I get a number of errors indicating "copy cannot be used now" etc.
Any help would be great. Thanks.