473,487 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Insert a table in a form

3 New Member
Hello, I use Visual Basic 6 to get some data from an Access database...

What I want to do, is create a table in my form to put that data inside. But I want to be able to access the table's cells individually (like excel). So I thought that I could put a simple table (not connected to a data source), put the data in an array and then, with a loop, put them in the table. The problem is that i can't find a proper kind of table... So can anyone help me?

Thanks in advance!
Nov 26 '06 #1
4 5530
mousi
3 New Member
Oh... What I forgot to say is that I want the user to be able to edit the data in the cells.... I tried doing that with MSFlexGrid, but i cannot find a property to let the user edit the table values!
Nov 27 '06 #2
Killer42
8,435 Recognized Expert Expert
Oh... What I forgot to say is that I want the user to be able to edit the data in the cells.... I tried doing that with MSFlexGrid, but i cannot find a property to let the user edit the table values!
I think you'll save yourself a lot of problems if you get the terminology straight. It's a grid, not a "table".

I think you can use at least one of the various grid controls to edit your "local" data, but don't remember which one(s). If I can find it, I do have some code which provides a workaround for the old Grid control by positioning a text box over the cell you want to edit. It works fairly well, if you can't find a better way.

The DBgrid control can work in "unbound" mode to edit data which doesn't come from a database table, but I don't recall how to work with it.
Nov 27 '06 #3
mousi
3 New Member
Thanks for your answer killer... I've found the ubgrid grid control which does what I want. The truth is that it's not the best I could use but it's ok... Oh and another short question:
I want to open a file for reading and writing, so i use the textstream method. Is this a good method to use or should I use something else? The file I want to read (and write) is small (2-3 lines)
Nov 28 '06 #4
Killer42
8,435 Recognized Expert Expert
I want to open a file for reading and writing, so i use the textstream method. Is this a good method to use or should I use something else? The file I want to read (and write) is small (2-3 lines)
To be honest, I have no idea. I've never used a TextStream - tend to just use a simple Open statement. For example, to read three lines from a file, I'd normally use something like
Expand|Select|Wrap|Line Numbers
  1. Open "TheFile.txt" For Input Access Read Shared As #1
  2.   Line Input #1, Var1
  3.   Line Input #1, Var2
  4.   Line Input #1, Var3
  5. Close #1
I suppose I find it very simple, because I've used similar statements in lots of BASIC versions over the years. But whether it's the best way to do it, I really couldn't say.
Nov 28 '06 #5

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

Similar topics

2
5613
by: newbie_mw | last post by:
Hi, I need urgent help with a novice problem. I would appreciate any advice, suggestions... Thanks a lot in advance! Here it is: I created a sign-up sheet (reg.html) where people fill in their...
8
5501
by: Sans Spam | last post by:
Greetings! I have a table that contains all of the function permissions within a given application. These functions are different sections of a site and each has its own permissions (READ, WRITE,...
1
8727
by: PT | last post by:
I got a problem. And thats..... First of all, I got these three tables. ------------------- ------------------ ---------------------- tblPerson tblPersonSoftware ...
8
9210
by: Bri | last post by:
Greetings, I'm having a very strange problem in an AC97 MDB with ODBC Linked tables to SQL Server 7. The table has an Identity field and a Timestamp field. The problem is that when a new record...
2
3169
by: Geoffrey KRETZ | last post by:
Hello, I'm wondering if the following behaviour is the correct one for PostGreSQL (7.4 on UNIX). I've a table temp_tab with 5 fields (f1,f2,f3,...),and I'm a launching the following request :...
1
4997
by: solomon_13000 | last post by:
connection.asp: <% Sub RunQueryString (pSQL,parms) on error resume next Set conn = Server.CreateObject("ADODB.Connection") conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &...
5
3720
by: .Net Sports | last post by:
I'm trying to insert records into an sql database coming from a page using the request ..form method. The table "general" has a primary key 'geid .' I get the following error: Cannot insert the...
2
9413
by: rn5a | last post by:
In a ASP applicatiuon, the FOrm has a textbox & a select list where the admin can select multiple options. Basically the admin has to enter the name of a new coach in the textbox & select the...
4
4831
by: =?Utf-8?B?UmljaA==?= | last post by:
On a form - I have a datagridview which is docked to the entire form. The datagridview allows users to Delete and/or Add Rows. On the Form_Load event I Fill the datagridview source table with a...
58
8013
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.