Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 August 9th, 2006, 09:56 AM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to whulling
Default Datagrid

I have a small problem - my programmer is in Europe right now, and I need to add some basic functionality to a form. I want users to be able to 'Select all of the rows' (which would mean checking all the boxes - via a checkbox within the grid. Similar to a hotmail/yahoo mail delete all, only I don't want to delete these rows. I have other updates that will be done, I simply need to know how to check all of the boxes returned by the grid. I thought it would be as simple as setting up an on click event for the button on the form to make the checkbox true - this is clearly either not the case, or I cannot figure out hot to call the object in order to update it within the grid.

The Grid is a subform named: subfrmEditBelforGlobalGrid
The check box is name Selected
The command button objec to click on is named btnSelectAll

Here is the code I currently have for btnSelectAll:
Code:
Private Sub btnSelectAll_Click()
'Created by WCH on 8.8.06
'This may not work at all
On Error GoTo Err_btnSelectAll_Click

Run Select_All

Exit_btnSelectAll_Click:
    Exit Sub

Err_btnSelectAll_Click:
    MsgBox Err.Description
    Resume Exit_btnSelectAll_Click
End Sub

What code do I need to be called when I run Select_All in order to populate all rows in the grid with a checked box?

I have posted some screen shots to help in the explanation, which I assume is lacking.
http://willhullinger.blogspot.com/

Thanks for any help

W

 
Old August 10th, 2006, 12:36 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Where is this code?

"Run Select_All"



mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
User COntrol Datagrid inside datagrid rodmcleay ASP.NET 1.0 and 1.1 Professional 3 April 14th, 2007 10:11 AM
Creating DataGrid In Repeater/DataGrid liduwan ASP.NET 1.0 and 1.1 Professional 9 March 6th, 2007 03:31 PM
datagrid ajaidass ADO.NET 2 March 1st, 2007 05:36 PM
Need help regarding datagrid ngsharmila .NET Framework 1.x 1 February 1st, 2006 12:55 AM





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