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

x
?
Solved

Checkboxes using VB 6.0 and ASP

Posted on 1999-07-11
3
Medium Priority
?
131 Views
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, "
    Else
        SQL = SQL & "" & mvarVendedFlag & ", "
    End If

For an update of the field:
 If mvarVendedFlag = "" Then
        SQL = SQL & "VENDED_FLAG=1, "
    Else
        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.

sonali
0
Comment
Question by:Sonali
[X]
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
3 Comments
 

Author Comment

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

Accepted Solution

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

<form>
  <input type=checkbox checked=true>
</form>

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

Good Luck!!

..-=ViKtOr=-..
0
 
LVL 10

Expert Comment

by:viktornet
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>
</form>

that's all....

-vik-
0

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