devxlogo

Retrieving Data from a Text Field

Retrieving Data from a Text Field

Question:
I have a table with a text field that stores a long description. When I use the Select statement to query the table, it only returns 255 characters. How do I extract those data stored in the text field (using VB recordset)?

Answer:
You need to declare a variable for the text chunk you want to manipulate, and a variable to mind the offset into the text field you’re working on.

The first fetch out of the text field puts you at position 256 for the next fetch, so grab the second chunk and increment the offset to mind where you are. Continue until you’re exhausted.

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist