AJ IT Student
Registered User.
- Local time
- Today, 22:20
- Joined
- May 8, 2002
- Messages
- 36
Hi all..
Thanks for everyones help earlier - though i still haven't sorted my core problem! More about that later.
I need a couple of relatively simple (to you!) bits and bobs if thats ok...
1. How do I create a filter so that the 'emailaddress' MUST have @ and "." in it? If these are not present, I would like a message box saying so... This may be simple (?) but also I don't really have many Access wizards at all!
2. If nothing at all is entered on my 'AddEmployee' form, it doesn't count it as a record, and therefore just exits the form without doing anything. I'd like a small piece of code to do something like: If $LastnameField == "" { MsgBox "no record was added as you left all fields blank" } - I only know PHP's format of programming - and not very well at that!
How could I do this - and attach the code to the 'addrecord' button?
3. How do I make it so that on fields in a table, it will let me have something like: 0208 484 3840... Whenever I try, it always takes out the ZERO, and sometimes says its too long. I am using Long Interger- and can't find any option to specify the length. Any ideas?
It may sound stupid, but I really need some more Macros, Validation Rules, and little bits of VBA in my project to get an A.
Any little tips? Which can I use? I don't have a real clue about how to build a validation rule or Input Mask - and I don't have the wizards. Something silly like calculating ones Age from their bday?
I am honestly extremely grateful for all help!!
Unfortunately there is a lot resting on this. I'm not going to get much sleep over the next few days. and I have to work
Many many thanks.
aj
Thanks for everyones help earlier - though i still haven't sorted my core problem! More about that later.
I need a couple of relatively simple (to you!) bits and bobs if thats ok...
1. How do I create a filter so that the 'emailaddress' MUST have @ and "." in it? If these are not present, I would like a message box saying so... This may be simple (?) but also I don't really have many Access wizards at all!
2. If nothing at all is entered on my 'AddEmployee' form, it doesn't count it as a record, and therefore just exits the form without doing anything. I'd like a small piece of code to do something like: If $LastnameField == "" { MsgBox "no record was added as you left all fields blank" } - I only know PHP's format of programming - and not very well at that!
How could I do this - and attach the code to the 'addrecord' button?
3. How do I make it so that on fields in a table, it will let me have something like: 0208 484 3840... Whenever I try, it always takes out the ZERO, and sometimes says its too long. I am using Long Interger- and can't find any option to specify the length. Any ideas?
It may sound stupid, but I really need some more Macros, Validation Rules, and little bits of VBA in my project to get an A.
Any little tips? Which can I use? I don't have a real clue about how to build a validation rule or Input Mask - and I don't have the wizards. Something silly like calculating ones Age from their bday?
I am honestly extremely grateful for all help!!
Unfortunately there is a lot resting on this. I'm not going to get much sleep over the next few days. and I have to work


Many many thanks.
aj