dbTalk Databases Forums  

Select specific records from datasheet view form and copy

comp.databases.ms-access comp.databases.ms-access


Discuss Select specific records from datasheet view form and copy in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Annette
 
Posts: n/a

Default Select specific records from datasheet view form and copy - 10-17-2011 , 01:38 PM






I have a form that is in datasheet view and each record contains about
10 fields. I would like to give the user an option to select records
they wish to copy by either clicking on them or having a "copy" button
somewhere that will allow them to select say 7 out of 10 records and
copy them back to a table. Ideally it would be nice to have the data
listed in a datasheet view, the user would select the records to copy,
the records would be inserted into a table and then a popup form is
displayed allowing them to change/add data to the records. Most months
the data is exactly the same, but there is a different service begin/
end date and the service type might change.

Any ideas?

Reply With Quote
  #2  
Old   
Patrick Finucane
 
Posts: n/a

Default Re: Select specific records from datasheet view form and copy - 10-18-2011 , 09:43 AM






On Oct 17, 1:38*pm, Annette <annet... (AT) co (DOT) saint-croix.wi.us> wrote:
Quote:
I have a form that is in datasheet view and each record contains about
10 fields. I would like to give the user an option to select records
they wish to copy by either clicking on them or having a "copy" button
somewhere that will allow them to select say 7 out of 10 records and
copy them back to a table. Ideally it would be nice to have the data
listed in a datasheet view, the user would select the records to copy,
the records would be inserted into a table and then a popup form is
displayed allowing them to change/add data to the records. Most months
the data is exactly the same, but there is a different service begin/
end date and the service type might change.

Any ideas?
You might want to look at the SelHeight and SelTop properties. Does
this link address your issue? http://kbalertz.com/294202/enumerate...ds-Access.aspx

Reply With Quote
  #3  
Old   
ron paii
 
Posts: n/a

Default Re: Select specific records from datasheet view form and copy - 10-19-2011 , 08:00 AM



"Patrick Finucane" <patrickfinucanetx (AT) gmail (DOT) com> wrote

Quote:
On Oct 17, 1:38 pm, Annette <annet... (AT) co (DOT) saint-croix.wi.us> wrote:
I have a form that is in datasheet view and each record contains about
10 fields. I would like to give the user an option to select records
they wish to copy by either clicking on them or having a "copy" button
somewhere that will allow them to select say 7 out of 10 records and
copy them back to a table. Ideally it would be nice to have the data
listed in a datasheet view, the user would select the records to copy,
the records would be inserted into a table and then a popup form is
displayed allowing them to change/add data to the records. Most months
the data is exactly the same, but there is a different service begin/
end date and the service type might change.

Any ideas?

You might want to look at the SelHeight and SelTop properties. Does
this link address your issue?
http://kbalertz.com/294202/enumerate...ds-Access.aspx
I used that code in one form, and it does work. I did have a usability
issue, after the records are selected and the user presses a command button;
the highlighting on the records goes away. I have the function that works
with the selection highlight the records but it is not intuitive for the
user.

Reply With Quote
  #4  
Old   
Annette
 
Posts: n/a

Default Re: Select specific records from datasheet view form and copy - 10-19-2011 , 11:32 AM



Thank you for the link. I downloaded the example and it appears to be
set up for a continuous form and not a datasheet. Has anyone gotten
this to work in a datasheet?

Reply With Quote
  #5  
Old   
jbguernsey
 
Posts: n/a

Default Re: Select specific records from datasheet view form and copy - 10-20-2011 , 03:28 AM



On Oct 19, 5:32*pm, Annette <annet... (AT) co (DOT) saint-croix.wi.us> wrote:
Quote:
Thank you for the link. I downloaded the example and it appears to be
set up for a continuous form and not a datasheet. Has anyone gotten
this to work in a datasheet?
Hi Annette

One approach that may work for you is to create a new Yes/No field in
the table (called Selected, maybe). This would allow you to click in
each of the records you want to copy (or whatever) and then run a
query that has Selected = True as a criterion. You can clear all the
'Selected's easily with a bit of code or an update query.

HOWEVER ... this method is OK for single-user stuff. If there are
multiple users you can get some horrible complications when 2 or more
users are Selecting from the same table at the same time.

HTH

JB

Reply With Quote
  #6  
Old   
ron paii
 
Posts: n/a

Default Re: Select specific records from datasheet view form and copy - 10-20-2011 , 07:28 AM



"Annette" <annettem (AT) co (DOT) saint-croix.wi.us> wrote

Quote:
Thank you for the link. I downloaded the example and it appears to be
set up for a continuous form and not a datasheet. Has anyone gotten
this to work in a datasheet?
Depending on the form, it can be structured to make a continuous form look
like a datasheet.

Move all your common controls into the form header or footer, leaving only
the repeating controls in the detail. Down side is the user will loose the
ability to change the column width and height; sort by clicking the column
and filter by data in the column.

Reply With Quote
  #7  
Old   
Patrick Finucane
 
Posts: n/a

Default Re: Select specific records from datasheet view form and copy - 10-20-2011 , 03:12 PM



On Oct 19, 11:32*am, Annette <annet... (AT) co (DOT) saint-croix.wi.us> wrote:
Quote:
Thank you for the link. I downloaded the example and it appears to be
set up for a continuous form and not a datasheet. Has anyone gotten
this to work in a datasheet?
I'm at work and a lot of websites are blocked for me so I can't check
it out and I cann only go by the blurb of the page in Google.
http://access.mvps.org/access/forms/frm0033.htm. I've done what you
want to do long ago so I know it can be done. If this link doesn't
answer your question I suggest you do a search using your favorite
search engine,

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.