Wrox Programmer Forums
BOOK: Beginning Access VBA
This is the forum to discuss the Wrox book Beginning Access 2002 VBA by Robert Smith, Dave Sussman, Ian Blackburn, John Colby, Mark Horner, Martin Reid, Paul Turley, Helmut Watson; ISBN: 9780764544026
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning 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 September 8th, 2011, 11:40 AM
Registered User
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default access 2007 vba checkboxes

I would like some help adding a check box to and 'ADO' record set.

I am modifying a case study in chapter 13 of Access 2007 VBA by Denise Gosnell

Unfortunately there isn't one checkbox used throughout the entire book - however its still very good and has got me from zero confidence in coding to being just about able to manipulate many things.

The fields on the existing form lead to object variables that appear about 9 times throughout the code of the application, populating form record sets, sub procedures to clear the forms etc.

I have added a field to the table, added
Dim blMemberVal as boolean
to a list where other field variables are declared
Public Property Get Member() As Boolean
     On Error Resume Next
     Member = blMemberVal
 End Property
 Public Property Let Member(ByVal Value As String)
     On Error Resume Next
     blMemberVal = Value
 End Property
Oh, I have just seen what I have done!
I was getting onload parameter errors.

Now I have changed (ByVal Value As String) to Boolean it i can get the form to open without error.

However the form will display what is in the database correctly but when I click 'save' which calls an update sql function I am getting an error:
(missing operator) in query expression "0' chkMember = 'False"

Be grateful If someone can assist in checking the code I am using to help resolve this...



Similar Threads
Thread Thread Starter Forum Replies Last Post
RS-232 and Access 2007 VBA database Gajun BOOK: Beginning Access 2007 VBA ISBN: 978-0-470-04684-5 1 June 2nd, 2010 11:08 AM
How to specify relative path to Access 2007 in ADO connection string? [Excel 2007] sektor Excel VBA 4 September 3rd, 2009 11:59 PM
VBA Code not working in 2007 blue9244 Excel VBA 4 August 20th, 2009 09:11 AM
Using VBA to Search in Access 2007 culleng Visual Basic 2008 Essentials 1 May 25th, 2009 09:30 PM
TreeView in VBA (Access 2007) linhqhta BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 1 August 6th, 2008 04:14 AM

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