?
Solved

Vb.Net - Conversion from VB6 Query Question

Posted on 2013-01-04
2
Medium Priority
?
219 Views
Last Modified: 2013-01-04
Good Day Experts!

I am converting a project from VB6 to VB.Net. I ran across an Insert statement that uses a condition in the values clause which is based on a previously executed RecordSet.  Here is the part in question:

INSERT INTO [" & strReportType & " REPORT$] (SECTOR,DIVISION,CITY,ADDRESS,[I/O]...
values ('" & IIf(Not SQLrs2.EOF, SQLrs2.Fields("Reference Notes 2").Value, "") & "',...

Ok, I am trying to understand what happens if SQLrs2.EOF was true.  If that was the case would the code just put ' ' for the value for SECTOR?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 600 total points
ID: 38744036
it was putting an empty string value
0
 

Author Closing Comment

by:Jimbo99999
ID: 38744140
Thanks for the clarification,
jimbo99999
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month17 days, 2 hours left to enroll

864 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