Change in Record

G

Guest

What event would I need to create in a form to update rectangles, lines, etc
when a user moves from one record to another.

For example, my form has a rectangle that changes based upon the information
inputed in the form. I need the rectangle to change as the users views the
next record? I can get the rectangle to change on edit when the input
parameters are reselected...but not on views?
 
L

Larry Linson

"Heiko K Stugg" wrote
What event would I need to create in a
form to update rectangles, lines, etc
when a user moves from one record to another.

For example, my form has a rectangle that
changes based upon the information
inputed in the form. I need the rectangle to
change as the users views the next record?
I can get the rectangle to change on edit when
the input parameters are reselected...but not
on views?

Put the code to change the rectangle in the OnCurrent event, and it will
execute whenever a different record is displayed. If the changes also
should be made when some other Control on the Form is modified, place a call
to the same code to change the rectangle in the AfterUpdate event of that
Control.

Larry Linson
Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top