473,320 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How do I display records in a richtextbox?

Hi, I am developing a program in visual basic that extracts info from an access database.

So far I know how to add records, make a query and count the number of records that that query gives, but I don't know how to display the entire records that the query gives. Any idea?

So far I have: (it counts the number of records found, but I don't know how to display them)

con.ConnectionString = directory
con.Open()
ds.Clear()


sql = "select * from proyectos where mes='" & ComboBox6.Text & "' and año='" & TextBox1.Text & "';"
Dim dt As New DataTable
Dim o As New OleDb.OleDbDataAdapter(sql, con)
o.Fill(dt)
MessageBox.Show(dt.Rows.Count)
Nov 23 '09 #1
1 2586
debasisdas
8,127 Expert 4TB
if you want to display all the records simply use any grid control.
Nov 24 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Guest | last post by:
Hi All, I have to display xml Data in Treeview also after selecting node the data in it display in RichTextBox. Can anyone help me with this. Thanks, Shailes
0
by: nouno | last post by:
I am trying to spell check a richtextbox. Through code (shown below) I save the contents of the richtextbox to a rtf file, open the rtf file in Word, spell check it, save it, and then load the ftf...
2
by: nitin8or | last post by:
Hi ALL, I want to display in a RichTextBox the Binary Large Objects data coming from database. If I have one record its not a problem I convert it to byte array and pass it on in a stream as a...
0
by: goodmannewz | last post by:
How can I display a web-style link without explicit wirting the URL? It does work when I wrote a URL for example:www.microsoft.com in the richtextbox. However, I want to show is a URL link...
4
by: Tigrou | last post by:
Hello, In a Oracle Database i have text who are stored, this text are in RTF format, you can see an example below: {\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\froman\fcharset0...
9
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
0
by: Vimalathithan | last post by:
I just developing a editor. I have provide the options like Bold, Italic, underlin, font change, font size change. These font options are keep in with one toolstripbutton. the toolstripbar keep...
0
by: gyap88 | last post by:
I am currently using vb2005. I have 2 variable strings named seq and color1. My program will display seq in a richtextbox in correspond to the color, red blue or green as displayed in color1. ...
1
by: priyajee | last post by:
Hai all, I have joined two tables.My Query result is having multiple records (ie) 8 Rows and 2 Columns..How can i display that multiple records in richtextbox? Can anyone tell me??
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.