VBasic reference of record stepping

xxyy

Registered User.
Local time
Today, 21:02
Joined
Feb 24, 2006
Messages
51
Hi All!

I d'like to ask for your help in the following issue:

When I step the records on a form clicking on the arrows below I want refresh some field reacting on this event.

How can I refer to this event in Visual Basic? And how can I bind the VB program to the form? (Because - as I know - there's no field on the properties box for this purpose)

(Or if you know an event equivalent to this record stepping, I think it would do as well)

Thanks in advance.

BR

xxyy
 
It is "On Current" event.
 
Guys,

Thank for your help, but I guess I did something wrong because it didn't work...maybe I bound the event to the wrong element?

I typed in TOOLS>MACROS>VISUAL BASIC EDITOR the followings (with the relevant names), but I guess I did something wrong because it didn't work...

My test:

Private Sub FormCurrent()
Forms![FormName]![FieldName].Requery
End Sub

Private Sub OnCurrent()
Forms![FormName]![FieldName].Requery
End Sub

Private Sub FormName_FormCurrent()
Forms![FormName]![FieldName].Requery
End Sub

Private Sub FormName_OnCurrent()
Forms![FormName]![FieldName].Requery
End Sub
 
Yes, it succeeded.

Rich's suggetion: Private Sub Form_Current() works.

I tried with 'FormName_Current()', and 'FormName' seems to be wrong.

MStef, Rich: THANK YOU !!!
 

Users who are viewing this thread

Back
Top Bottom