|
-
CheckBoxes
In a database project I'm using class modules to read and write from the data
base to controls and from controls to the database.I'm using Access 2000
as the back end database and ADO for data base access. The problem is with
the check box controls. Access stores Boolean values as '0 = False' and '-1
= True' yet the checkbox values are '0 (unchecked)= False' and '1 (checked)=
True' therefore the following code draws the
Runtime Error '380' Invalid property value:
Public Sub OtoF()
chkCheckBox = m_checkBox 'm_checkBox value is true
End Sub
Public Sub FtoO()
m_checkBox = chkCheckBox 'chkCheckBox is checked
End Sub
Does anyone know how to get around this?
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks