Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More than one action in the "On Current" property?

Status
Not open for further replies.

bangsmic

Technical User
Oct 22, 2001
29
US
I have form where the user can perform preset filters by selecting a radio button. This is carried out in a macro (ApplyFilter). The same form also has an image control that changes pictures as you scroll through each record, this is accomplished by code in (Sub_Form_Current). Both of these actions, the(ApplyFilter)macro and the (Form_Current) code go into the "On Current" property field for the form. Can both of these go in at the same time? How are they written in the "On Current" property so they both function?
 
Apply the filter using the command

Docmd.ApplyFilter "YourFilterName"

and then run the code to set the image for the record.

Check out the ApplyFilter Method topic in the online Help for more on the Apply filter method. You might also find the Convert macros to Visual Basic topic useful.

HTH

Lightning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top