SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 25th, 2000, 06:04 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Checkbox values return

<i><b>Originally posted by : raj (rajkedda@hotmail.com)</b></i><br /><br />I have an access database with 5 tables. One Table(Departments) has all static values(say Department1,Department2,Department3,Department4) and another table where u keep track of documents belonging to department(s). There is a form on the Intranet Web page with departments being shown as check boxes via populating the checkbox from db. When a user submits, the new record routines writes the values of the checkboxes to db successfully. The values are say Department1,Department3,Department4(if these check boxes were selected). The record field has values Department1,Department3,Department4 stored in it. That is exactly what I want. The problem I am having reading it back with these 3 check boxes selected and others(for example department2 or any other additions to the static table) unchecked. I would really appreciate if somebody can help me on this.<br /><br />

Reply With Quote
  #2  
Old September 26th, 2000, 08:19 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : victor (vmouline@home.com)</b></i><br />If you want a checkbox to be checked when form is loaded, use attribute CHECKED<br /><input type='checkbox' CHECKED><br /><br />When you write your server-side routine, use something like this:<br />dim checked<br />if rs.fields("yourField").value = "Department1" then<br /> checked = "CHECKED" <br /> else<br /> checked = ""<br />end if<br />response.write"<input type='checkbox' " & checked & ">" & vbNewLine<br /><br />------------<br />raj at 9/25/2000 3:04:16 PM<br /><br /><br />I have an access database with 5 tables. One Table(Departments) has all static values(say Department1,Department2,Department3,Department4) and another table where u keep track of documents belonging to department(s). There is a form on the Intranet Web page with departments being shown as check boxes via populating the checkbox from db. When a user submits, the new record routines writes the values of the checkboxes to db successfully. The values are say Department1,Department3,Department4(if these check boxes were selected). The record field has values Department1,Department3,Department4 stored in it. That is exactly what I want. The problem I am having reading it back with these 3 check boxes selected and others(for example department2 or any other additions to the static table) unchecked. I would really appreciate if somebody can help me on this.<br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Checkbox values return


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT