A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Delete selected records in subform in Datasheet view



 
 
Thread Tools Display Modes
  #1  
Old August 24th, 2005, 04:51 PM
DrewTheFather
external usenet poster
 
Posts: n/a
Default 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  
Old August 24th, 2005, 05:56 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.