Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > BOOK: Beginning Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Display Modes
  #1 (permalink)  
Old September 8th, 2011, 11:40 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Code:
Dim blMemberVal as boolean
to a list where other field variables are declared
added
Code:
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...

Thanks
androm31




added
Reply With Quote
Reply


Thread Tools
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
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



All times are GMT -4. The time now is 11:48 PM.


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