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

On leaving a Row in Datasheet

Status
Not open for further replies.

raabbasi

Technical User
Jun 21, 2005
52
PK
I have a Datasheet bound to a table. I want to update records in another table, each time when the user leaves a Row (a record) of the Datasheet and enters into another row.
 
I don't think there's any reliable "on leaving a record" event, unless you're also updating the record, then the after insert would work for new records, and after update for all records having a change.

The on current event will fire whenever you navigate between records (i e, when "arriving" on the next record, be it a new one or existing one).

Roy-Vidar
 
Oh - and since this is a forms question, not a Modules/VBA coding question, the form forum is perhaps more appropriate (forum702)

Roy-Vidar
 
Thanks Roy-Vidar for the response. My question is about Coding the Datasheet in VBA.
I could not find the "OnCurrent" event, or I have mis-understood.
I would appreciate if you elaborate on;
"The on current event will fire whenever you navigate between records (i e, when "arriving" on the next record, be it a new one or existing one)."

Thanks.
 
Only "programmable" thing called Datasheet, is the datasheet view of a form -> standard forms coding -> forms forum (forum702). The form has several events, among those, the on current event. Found in the design view of the form, property dialog, event tab.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top