|
-
Oct 31st, 2003, 05:35 AM
#1
Thread Starter
Lively Member
checkbox value: how to detect
Hi guys,
I'm having a form in which the user can check a checkbox.
Depending on the value (checked or not) an sql string must be constructed which looks in an access 2000 database to find items (tblCD_detail.Active) who have a corresponding value.
I tried the following code to detect the state of the checkbox in the form:
If Me.CheckBoxActive.CheckState.Checked = CheckState.Checked Then
strSQLzoeken = strSQLzoeken & " and tblCD_detail.Active= true"
Else
strSQLzoeken = strSQLzoeken & " and tblCD_detail.Active= false"
End If
I don't get building errors but the code doesn't work properly because I dont get the expected results.
I think it has something to do with the code or the way I talk to the values in the database.
Can somebody help me?
Thanks
Tom
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
|
Click Here to Expand Forum to Full Width
|