If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Making A Checkbox ticked From Database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-01-04, 20:29
KlansMan KlansMan is offline
Registered User
 
Join Date: Apr 2004
Posts: 50
Making A Checkbox ticked From Database

Hi there i hope some one can help me this has been doing my head in

i have a form which is populated from a ms access table i can get all my fields to be populate dapart from the check boxes.

My check box database fields are set to TRUE/FALSE

can any one give me some hints on how to make the checkboxes ticked the field reads True

Regards

KM
Reply With Quote
  #2 (permalink)  
Old 12-02-04, 16:15
lindentree lindentree is offline
Registered User
 
Join Date: Nov 2004
Posts: 22
I presume you have this in a form:

<input <%if (CStr(Recordset1.Fields.Item("checkboxname").Value ) = CStr("True")) Then
Response.Write ("CHECKED") : Response.Write("")%>
type "checkbox" name="checkboxformname"
value ="<%=(Recordset1.Fields.Item("checkboxname").Value %>">

In my code I keep this all on one line

Hope this helps
Reply With Quote
  #3 (permalink)  
Old 12-02-04, 18:48
KlansMan KlansMan is offline
Registered User
 
Join Date: Apr 2004
Posts: 50
Cheers

You would not beleave how much that has been doing my head in !

I don't want to be a pain but was wondering do you know how to show the value saved in the database in a drop down menu , Just that am newish to ASP and cant get my head`around it I can get text boxs to show values but am haveing truble with the likes of radio buttons, tick boxes and drop down menus

Any Help Would Be Most Greatful

Regards

KM
Reply With Quote
  #4 (permalink)  
Old 12-03-04, 15:26
lindentree lindentree is offline
Registered User
 
Join Date: Nov 2004
Posts: 22
Which package are you using?
Dreamweaver MX gives you the option to assign a dynamic value to a drop down or list box
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On