Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 April 9th, 2008, 05:35 PM
Registered User
 
Join Date: Apr 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default binding a checkbox ??

Hi,

I need some help with creating a form that displays data from patient and doctors, where a patient can have more than one doctor and viceversa (m-n relationship). I created a subform that displays the data alright - a tabular form, I added a checkbox for each row in this tabular form so the user can select the patient-doctor information in that row for printing. The idea is similar to what you do in hotmail/yahoo, where you have a list of emails and next to each a box that you click if you want to delete selected rows.

So, when the user clicks on a row, the patientID and DoctorID should be added to another table - I'll use this auxiliary table ("SelectedPatients") to keep track of those rows that were selected so when I print the list it will only contain info about these patients. Also, I want to use this other table to keep track of checked boxes so I can display the 'tick' every time I upload the form.

Problems I have:
when I click on one box, all boxes for all rows in the form get checked.

I don't know how to bind the checkbox to something other than the query I use to bind the form to. If I try to bind the checkbox to something else than this query the form becomes 'read-only'.

How can I solve this???

Please any help very much appreciated! Ah, my knowledge of VB/Access is kind of basic.

Margarita






Similar Threads
Thread Thread Starter Forum Replies Last Post
CheckBox binding in ListView - Multiple events! dweezilb Windows Presentation Foundation 1 April 22nd, 2007 06:39 PM
checkbox checked by default by html:checkbox sachin.tathod Struts 3 December 4th, 2006 03:41 PM
Binding a checkbox that contain Y/N values aad1 C# 1 May 17th, 2006 07:23 PM
binding an tinyint to a CheckBox control... ShadowMoon ADO.NET 0 October 26th, 2004 05:55 AM





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