Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

Recordsets

$
0
0
I have a query which returns name, address, telephone, addressL1, addressL2, addressL3, email, fax from a table.

eg
sql="SELECT * FROM people_info where person_id='1234'"

I then set a variable to store each of these values.
eg psaddressL1=(rsInfo("addressL1"))

However in the database addressL1 and addressL2 are empty for this person_id so when i try and assign them to variables i get an error "No current record".

Is there a way of checking if these columns are empty and if they are assign the variable to be addressL2= " " etc. ?

Thanks!

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>