Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 1st, 2006, 05:12 AM
Authorized User
 
Join Date: May 2006
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old June 1st, 2006, 07:51 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
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
Reply With Quote
  #3 (permalink)  
Old June 2nd, 2006, 03:43 AM
Authorized User
 
Join Date: May 2006
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old June 2nd, 2006, 05:45 AM
Authorized User
 
Join Date: May 2006
Location: , , .
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


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:01 PM.


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