Clintimania
Registered User.
- Local time
- Today, 16:34
- Joined
- Nov 21, 2006
- Messages
- 60
Ok, I do not know much about code and I am trying to learn/get this to work.
I have a form, and I want the form to run a macro if certain fields are left blank. This is what ive tried so far, which obviously is wrong, but I was hoping it would be enough for someone to see what I am trying to do and tell me my error.
If Name = Null Then DoCmd.RunMacro "required_fields" Else
DoCmd.GoToRecord , , acNext[/I]
This is the next record nav button on my form. Name is a field on the form that if left blank, I want it to run a macro. Any tips?
I have a form, and I want the form to run a macro if certain fields are left blank. This is what ive tried so far, which obviously is wrong, but I was hoping it would be enough for someone to see what I am trying to do and tell me my error.
If Name = Null Then DoCmd.RunMacro "required_fields" Else
DoCmd.GoToRecord , , acNext[/I]
This is the next record nav button on my form. Name is a field on the form that if left blank, I want it to run a macro. Any tips?