Form datasheet view record onclick (1 Viewer)

cosmarchy

Registered User.
Local time
Today, 15:08
Joined
Jan 19, 2010
Messages
116
If you have a form in datasheet view, is it possible to get the record which was clicked on to use in an event?

Similar to a listbox or combobox when you double click you can get the contents of the record.

Thanks
 

GPGeorge

Grover Park George
Local time
Today, 15:08
Joined
Nov 25, 2004
Messages
1,873
Yes, the "record which was clicked on" will be the Current Record, so if you ask for the Primary Key of the Current Record, you'll get it to use in that event.
 

cosmarchy

Registered User.
Local time
Today, 15:08
Joined
Jan 19, 2010
Messages
116
Thanks :)
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 18:08
Joined
Feb 19, 2002
Messages
43,288
ALL control and form events ALWAYS reference the current record which is the record that has the focus. i.e. the one you clicked in or the first record displayed in the case of a continuous or DS form. Whether the form is single or multi-record is irrelevant. For continuous or DS view forms, the form object is reused. This is why unbound controls always contain identical values in a continuous or DS view. They do in single form view also, you just can only see one record at a time so you don't notice the "duplication".
 

Users who are viewing this thread

Top Bottom