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 June 1st, 2006, 05:12 AM
Authorized User
 
Join Date: May 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Check Boxes

I have a check box that i need to reset after i execute a query. Is there some VB code that i can use to do this. I cant seem to find this.

Thanks

Allan

 
Old June 1st, 2006, 07:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

If you're talking about a form, you just reset it to whatever you want. Suppose the checkbox is named MyCheckBox, then in your code you put

Me.MyCheckBox = False

or whatever your default is.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old June 2nd, 2006, 03:43 AM
Authorized User
 
Join Date: May 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a check box on a form, and i want it, when i click the checkbox, it automatically checks yes in a corresponding field in another table. I have a clients table and a clients form, when i click update i want it to check the update field in the clients table, so that it is picked up by my query?

Thanks. This is annoying me now :D

Allan

 
Old June 2nd, 2006, 05:45 AM
Authorized User
 
Join Date: May 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right. I have fixed the question above!!! (woo hoo). Next one. I have a button which i have to click, when i click this i would like it to set the value of the checkbox to checked. Here is the code for the Main button

Code:
Private Sub Update_Act_Click()

DoCmd.TransferText acExportDelim, , "Act Query", "C:\Act Update.csv"
Launch_Act
here is the check box
Code:
Private Sub Check296_BeforeUpdate(Cancel As Integer)
On Error GoTo HandleErr
    Cancel = CheckHeadOffice
ExitHere:
    Exit Sub
    End Sub







Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop over check boxes sams ASP.NET 1.0 and 1.1 Professional 5 July 17th, 2007 06:26 AM
Using check boxes to filter dstein4d Access VBA 13 January 25th, 2006 07:50 PM
Disable Check Boxes sweet4511 VB How-To 22 July 19th, 2005 03:53 PM
Using check boxes in datagrid ractim ADO.NET 2 September 8th, 2004 08:28 AM
Getting value of Dynamic Check boxes kathryne Classic ASP Databases 3 March 19th, 2004 05:44 AM





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