If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Delete selected records in subform in Datasheet view
I have a form created that also uses a subform. In the main form, I select a
"user" from a combo box, and all the "groups" that the "user" belongs to are displayed in the subform in the datasheet view. In the datasheet view in the subform, I would like to select a single record, or multiple records, (the records would then be highlighted), and delete these selected records from a Delete button housed in the main form. What would be the code to do this? I would ideally like to keep the datasheet view which, from a little toyng around with, prevents a Delete button in the subforms Footer section from being displayed, and to fit the overall design schema of the forms, a Delete Button on the main form would be ideal. Thank in advance for the help, DtF |
#2
|
|||
|
|||
You cannot do that, because when you click any command button the
multiple-record selection is lost. To get around that issue, use the Delete button in the toolbar instead of a command button on the form. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "DrewTheFather" wrote in message ... I have a form created that also uses a subform. In the main form, I select a "user" from a combo box, and all the "groups" that the "user" belongs to are displayed in the subform in the datasheet view. In the datasheet view in the subform, I would like to select a single record, or multiple records, (the records would then be highlighted), and delete these selected records from a Delete button housed in the main form. What would be the code to do this? I would ideally like to keep the datasheet view which, from a little toyng around with, prevents a Delete button in the subforms Footer section from being displayed, and to fit the overall design schema of the forms, a Delete Button on the main form would be ideal. Thank in advance for the help, DtF |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vertical scroll bar not appearing on subform in datasheet view | Geoffsea | Using Forms | 2 | June 18th, 2005 08:04 PM |
Subform Refresh Problem (but only with an unbound combo box control) | Barry Skidmore | Using Forms | 1 | December 21st, 2004 01:19 AM |
Edit properties of linked subforms problem (repost) | Allen Browne | Using Forms | 3 | November 12th, 2004 08:16 PM |
Record Selection in Datasheet View of subform | [email protected] | New Users | 1 | October 14th, 2004 12:54 PM |
Datasheet view subform | Paul | Using Forms | 1 | June 3rd, 2004 02:01 PM |