Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 16th, 2004, 02:07 PM
Authorized User
 
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datasheet View - Customize

I have an application that requires complete control over a subform in datasheet view. Here are a couple of items I'm having a hard time implementing. My first thought was to use a list box control, but I need the power of moving columns, sorting and filtering that the subform allows. The data is not editable.

   If possible, I would like to limit the user to only selecting a single record at a time.

   The recordsource is based on an ADO recordset extracted via a SQL Server stored procedure and there seems to be some issues with using the bookmark property of the form object after the form is set to the ADO recordset. Here is what I'm trying to accomplish. If there are 1000 records in the subform and I scroll down to record 587 and delete it, when the form is requeried, I can't find a way to return focus to record 586. I've tried the bookmark property, absoluteposition, currentrecord(form object), percentposition. Any ideas?

   I would like to simulate the highlighting of a single row when the user moves the focus to a different row...just like in a list box. If you click in a field, press F2 and then Shift+space, the row will highlight. I tried using sendkeys in various events, but the end results were never correct.

Thanks,
Mike





Similar Threads
Thread Thread Starter Forum Replies Last Post
reading a dataset into a form in datasheet view jd_erd Access 2 January 29th, 2007 04:26 PM
Datasheet view of a Query - Field Format arfa Access 4 March 13th, 2006 12:34 PM
Re: Add button on a form with datasheet view lxu Access 5 March 8th, 2004 06:19 PM
Datasheet View Auto Highlight a Row Dataman Access VBA 0 February 15th, 2004 11:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.