Publishing your Access forms on the Web? Add some fun with animated images! Here's how to create a form that will appear to come to life when you run it.
Publishing your Access forms on the Web? Add some fun with animated images! For example, say you want to publish a form that allows your users to enter a keyword that will search your software catalog for winter specials; to illustrate this, you've embedded an image of two boys hitting the a puck with their hockey sticks. To animate the image, follow these steps:
- Open your form in Design view.
- Right-click the embedded image of the hockey players.
- Click Properties.
- Click the All tab.
- Click in the Name Property box and enter ctlImage.
- Double-click the Form Properties button in the top left-hand corner of the form window.
- Click the Timer Interval property box and enter 200.
- Click in the On Timer property box and click the Build button.
- Select Event Procedure and click OK.
- Enter the following code at the prompt:
On Error GoTo HandleError
ctlImage.Left = ctlImage.Left + 200
ctlImage.Top = ctlImage.Top + 100
ctlImage.Left = 0
ctlImage.Top = 800
- Click [Alt]Q.
When you subsequently run the form, the boys will appear to skate across the form.
Miss an Access tip?
Check out the Microsoft Access archive, and catch up on other Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.