checkbox to insert data

M

Mangler

Quick question. Is it possible to insert values in a Database with a
checkbox? Say I have a recordset and if the check box is checked I
want to insert the value of the of the field in the DB.

<%=rsqa.Fields.Item("recini").Value%>
That is a persons initials, i want to insert those initials in a column
if it is checked, if it isnt checked nothing is inserted..
 
F

Firas S Assaad

Yes it is possible, just use the If Statement
example:

if request("[THE NAME OF THE CHECK BOX]")="on" then
rsqa.Fields.Item("recini")=[THE INTIALS, OR WHATEVER]
end if


hope this helps


Best Regards
Firas S Assaad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top