dom_donald
Registered User.
- Local time
- Today, 03:27
- Joined
- Apr 30, 2004
- Messages
- 22
Quite simply, I have a form with a sub-form showing data in a datasheet view. On the main form I have a button. On pressing this button I want to do two things
1) check that a row has been selected in the datasheet view
2) if a row has been selected, I wish to open a new form and populate the unbound text fields with data from the selected row, using VB.
Firstly, id' prefer to read the data from the selected row at the time the button is pressed (rather than store the data each time a record is selected).
For (1) i need a property to determine if a record has been selected. And now my main difficulty - I need to know the event that occurs when the row is selected by pressing the record selectors (and the selector is depressed and the row is highlighted). It's only under those conditions that I want to allow the user to open the other form based on the selected data. At the moment I can't find this specific method (and it's not OnCurrent because the row doesn't have to be highlighted for this to occur).
HELP
cheers
1) check that a row has been selected in the datasheet view
2) if a row has been selected, I wish to open a new form and populate the unbound text fields with data from the selected row, using VB.
Firstly, id' prefer to read the data from the selected row at the time the button is pressed (rather than store the data each time a record is selected).
For (1) i need a property to determine if a record has been selected. And now my main difficulty - I need to know the event that occurs when the row is selected by pressing the record selectors (and the selector is depressed and the row is highlighted). It's only under those conditions that I want to allow the user to open the other form based on the selected data. At the moment I can't find this specific method (and it's not OnCurrent because the row doesn't have to be highlighted for this to occur).
HELP
