Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8339205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:49:22+00:00 2026-06-09T04:49:22+00:00

I am loading data from access db but i have a problem with columns

  • 0

I am loading data from access db but i have a problem with columns that don´t have lenght.
Here is asp code:

sql= "select * from clientes where usuario_clientes="+id_usuario
        rs.Open sql, oConn
        while not rs.EOF    
            nombre=rs.Fields("Nombre_clientes")
            dni=rs.Fields("dni_clientes")
            mail=rs.Fields("mail_clientes")
            domicilio=rs.Fields("direccion_clientes")
            cp=CStr(rs.Fields("cp_clientes"))
            poblacion=rs.Fields("poblacion_clientes")           
            movil=rs.Fields("movil_clientes")

            if not rs.Fields("observaciones_clientes") then
                observaciones=" "
            else
                observaciones=rs.Fields("observaciones_clientes")
            end if

            if not rs.Fields("telefono_clientes") then
                telefono=""
            else
                telefono=rs.Fields("telefono_clientes")
            end if


            fila="<tr><td>"+nombre+"</td><td>"+dni+"</td><td>"+mail+"</td><td>"+domicilio+"</td><td>"+cp+"</td><td>"+poblacion+"</td><td>"+telefono+"</td><td>"+movil+"</td><td>"+observaciones+"</td></tr>"
            response.Write(fila)
            rs.MoveNext
        wend

I tried to show lenght 0 string if this data doesn´t exist but it not works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:49:23+00:00Added an answer on June 9, 2026 at 4:49 am

    I am not sure I understand, but MS Access is usually set-up to not allow zero-length strings, so these fields are likely to be null. Perhaps:

    if IsNull(rs.Fields("telefono_clientes")) then
        telefono="--"
    else
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that is loading quite an amount of data from SQL
I have a flash file that is loading data from XML file. After I
I have problem while loading data into html select when users press or click
I have a problem with loading data into an < object > using Javascript.
Two important points. 1 - SWF must have ability to loading binary data from
I have a DataController for my ViewController, which handles loading data from the internet.
I have a java project that uses java.io.RandomAccessFile to manage data loading. It seeks
I have a simple app that downloads some data from a webservice and displays
I have a SL application that reads some data from the database, which I
I am loading data from table to flat file destination, where my flat file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.