Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Checkboxes using VB 6.0 and ASP

Posted on 1999-07-11
Medium Priority
Last Modified: 2010-05-02
I'm working on a 3tier app using VB6.0, ASP and Oracle.
I'm trying to build a checkbox and in VB this is the syntax I'm using.  I've declared it is an integer in class builder utility.

For inserting in the field in the database which is a number(1)- here's my code:

If mvarVendedFlag = "" Then
        SQL = SQL & "1, "
        SQL = SQL & "" & mvarVendedFlag & ", "
    End If

For an update of the field:
 If mvarVendedFlag = "" Then
        SQL = SQL & "VENDED_FLAG=1, "
        SQL = SQL & "VENDED_FLAG=" & mvarVendedFlag & ", "
    End If

However, my addition and update fails.  Also, how can I make it appear on my asp page.

Thanks so much.

Question by:Sonali
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 1523558
Please help me as soon as possible.  thanks
LVL 10

Accepted Solution

viktornet earned 200 total points
ID: 1523559
you should probably use HTML...

  <input type=checkbox checked=true>

or you can simply remove the checked=true part if you don't want it to be check by default...

Good Luck!!

LVL 10

Expert Comment

ID: 1523560
if you wanna name the checkbox so it has name simply do this... (you might wanna name the form too)

<form name=form1>
  <input type=checkbox name=checkbox1 checked=true>

that's all....


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question