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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy- Using Built In Navigation Buttons 1

Status
Not open for further replies.

luceze

Programmer
Apr 26, 2001
842
US
Is there a way to trigger an event, using the built in navigation buttons, when previous or next is clicked.

I am trying to make a field (TextBox) visible or invisible based on the value in another field (Yes/No). However, the field remains visible on every subsequent record until the Yes/No field is updated triggering its on update event.

I thought about creating my own navigation buttons, but it would be so much easier if I could just use the built in one.

Thanks,
Eric
 
i'm not sure exactly what you need to do, but
have you tried putting your code in the On Current event property?

this may help. if not, let us know.

 
Thanks, that worked. I get confused sometimes where I need to put my code.
 
On your form's BeforeUpdate put

Private Sub Form_BeforeUpdate(Cancel As Integer)

Textbox.Visible = False

End Sub

"Textbox" needs to have your field name.

Try that and see if it helps. Janet Lyn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top