Link to home
Start Free TrialLog in
Avatar of Jimbo99999
Jimbo99999Flag for United States of America

asked on

Vb.Net - Conversion from VB6 Query Question

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
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jimbo99999

ASKER

Thanks for the clarification,
jimbo99999