We will be undergoing scheduled maintenance on May 20th, 2013 at 02:00 GMT.
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
In this video, I want to introduce you to the Control Wizard and show you how much easier it can make life for you. In the previous video, called Adding Controls, I walked you through the process of adding some buttons down here, and then going out here, and manually adding some Code to them. That's good, and I wanted you to see that, but that is the more advanced way to do it, and it gets you into more and more Code issues. We got into an error handling issue in that video, and I wanted you to see that, because I wanted you to see how much simpler the Control Wizards make your life. Now you do want to pursue getting more and more into the Code and the background, and error handling and so forth, but it's outside the scope of this course, and so what I want to do now, is take these off. I'm going to go out into Design View, and scroll down, and I am going to just, remove these two, actually let me just do it the easy way here, quickly, and get these off. And, right click, and Delete these off. And let's do one more thing, that we haven't really looked at in the course yet. This pushing my buttons way down here on the bottom, and they're hard to get to. In Layout View, I can simply re-size my fields here, OK? Now why do I do that large? Because I took the default on the text size, and they're all showing, I think 255 characters, and so it's trying to leave a little space for those, but notice I can pull it up, and make it a little tighter. I am going to go to Design View, and I want to put two buttons down here, but I'm going to use the Control Wizard. Now this is just a bit funky alright? Funky being that southern technical term for, it doesn't always work the same way. This might not be your experience, but it has certainly been mine. Most of the time it works just fine, but then all of a sudden, it will just kind of act a little bizarre on you. So here's the way you use the Control Wizard. You will notice that when we're in the Design Mode, you see more Controls up here, in the Controls Section OK? If I go to the Layout Mode, alright? You'll see that I have Controls up here alright? They're spread out more, but I'm missing some of them alright? So I always like to work in Design Mode here, OK? So what I'm going to do is, notice, I'm scrolling up and down with the arrows here, but notice there is another arrow down here, that says More, and when I click on that, you can see, there's a toggle down here for using Control Wizards. Right now, it's off, right now it's on, and when I come back and see that it is on, I can use this. Now here's the difference OK? If Control Wizards is not on, and you can see that it's not on right now, I'm going to click out of the way, and I click on a button for example, and I add it, nothing happens. Now I'm on my own, I have to go write the Code manually. So I am going to right click this, and remove it, but if I go down here, and turn on Control Wizards, then click the button, and then press it, notice it opens this Command Button Wizard. Now if you ever don't see this, and I'm going to come back off, off this and delete it again. If you ever don't see the Control Wizard open up, then open this up, make sure that's highlighted, right here, and you can see that it is, and once you see that, with this open, click the button, and then come down here, and usually that will cause this Wizard to open up. Now notice there's a lot of things you can do, just kind of go through here, and look at each one of these. I won't read them to you right now, but you're going to see quickly here how to make the magic happen. Notice this, we want to do some record navigation, we want to go to the next record alright? So we choose that, we hit Next. It says, do you want to put this picture on the button, or do you want to do text? And we're going to do to text OK? So we're going to say next, and then we hit Next, and it asks us for a name for this button, if we ever want to program it. I'm just going to call it BTN Next, and I hit Finish, and there is my button, and I can re-size it to make it look a little cooler, and let's go look at what happened. If I go to Form View, now when I hit Next, notice I go to the next record alright? Well let's go back to Design View, and let's add our Previous button. I'm going to move this guy over just a little, I will go back into Controls, make sure Control Wizards highlighted, click a button, come down, click here, notice it dropped one on. I want to go to the previous record, click Next, we're just going to call it previous, click Next. Let's call it BTN PREV, and click Finish, and just like that, we have another button OK? And I will make it a little wider, so that it has more of the standard look and feel. And just like that, I'm done OK? So now I go into my actual Form View, and you will notice that I can move forward, I can move backward, and if I go too far backward, it automatically says, hey wait a minute, you can't go to that record. Notice if I go Next, and you can see down here, I'm moving through them, if I hit Next after my last record, it says, Ah you can't go there either OK? And I can come back here, and I can start to do things if I would like alright? Now that's the way to really build these things, and be very easy, all your Codes written for you. You'll notice I didn't write a single line of Code, and you also noticed there are some other things out there that you can do with that Control Wizard. And that Control Wizard by the way, works on a lot of different things, for example, if I turn on the Control Wizard, and I want to drop an option box on, you'll actually see that in a separate video, but we can work with all kinds of things, and when we drop them on, for example, combo box, which we'll also look at later, it kicks off a different Wizard for how to use the combo box. So anyway, a lot of cool stuff going on here. The Control Wizards are really, really neat, and they make it look like you've been up all night programming.
| Course: | Microsoft Access 2010 |
| Author: | Mark Long |
| SKU: | 34224 |
| ISBN: | 1-936334-91-7 |
| Release Date: | 2011-05-12 |
| Duration: | 9 hrs / 121 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |