473,385 Members | 1,356 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,385 software developers and data experts.

How to create a new table at runtime

Talihomz
Hi.I was making a program that gets a clients id number and uses it to create a new record,named by a clients id.How do i create a Visdat table at runtime.Am using the ADO object to control the database.
Feb 3 '08 #1
8 1843
lotus18
866 512MB
Hi.I was making a program that gets a clients id number and uses it to create a new record,named by a clients id.How do i create a Visdat table at runtime.Am using the ADO object to control the database.
What database are you using? Why don't try using Create keyword?

Rey Sean
Feb 3 '08 #2
Am using Visual Data or rather the mdb database format.How do i use create
Feb 3 '08 #3
debasisdas
8,127 Expert 4TB
You are trying to create a new table or new record in existing table ?
Feb 4 '08 #4
Am trying to create a new table.Wat i mean is that for instance an existing table has client information like names,age,id number n other many details.This table is in another location lets say General Records folder.I want to create a table for each client that holds data in fields such as Date Logged On or Transaction Performed.The table for each client is created everytime a new client is registered and is on another location Client Data.How do i create the new tables for each client since each client can log on as many ties as possible?
Feb 4 '08 #5
debasisdas
8,127 Expert 4TB
You need to use ADOX .
Feb 5 '08 #6
Can you please xpound more on tha ADOX.Do you mean the ADO component.How do i use it?
Feb 5 '08 #7
dnb
34
Hi!!!!
Try This query

Private Sub Form_Load()

Dim mqry As String
mqry = "create table tablename(fieldname1 fieldtype,fieldname2 fieldtype)"
cn.BeginTrans
cn.Execute mqry
cn.CommitTrans

End Sub
Feb 5 '08 #8
debasisdas
8,127 Expert 4TB
Can you please xpound more on tha ADOX.Do you mean the ADO component.How do i use it?
Please find a related discussion here .
Feb 5 '08 #9

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

Similar topics

3
by: anon | last post by:
I have been used to using DAO in the past, and then converted to ADO. Now I am having to use VB.Net(2000) and ADO.NET and am experiencing difficulties with the creation and population of an mdb....
4
by: Michael Jackson | last post by:
I have a stored procedure to create a table. In my program I want the user to name the table to be created, therefore I pass a parameter to the SP for the table name. I cannot get it to work. It...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
3
by: equip200 | last post by:
I have a third party program that has the ability to control my program trough ActiveX/COM. My program is built in c#? What would I need to do to have the third party program connect to my...
3
by: RSB | last post by:
Hi Every one Having tuff time creating web controls Dynamically. All i am trying to do is read a table and generate a list of ASP TEXT Box. So how do i create this Control dynamically and where...
1
by: Big Dave | last post by:
I'm driving myself nuts trying to find a good tutorial in vb.net to create a datagrid at runtime. I've got how to do it at design time, but I'd like to build a class that handles all of the coding...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
0
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hello Gurus, I need to create a Microsoft Visual Studio 2005 report at runtime. I wrote a C# window application, that holds a DataSet and several DataGridView controls. Each of the...
3
by: mathewgk80 | last post by:
Hi all, I would like to know how to create html table at runtime... I have a dropdownlist and it contains values 1,2,3,4,5,6,7,8,9,10. and i have a button in the form.. when i select an...
1
by: gracepaul | last post by:
hi all, I want to drop a table and then create it again during runtime in oracle9i. The equivalent code that can be used with SQL is as follows if exists (select * from dbo.sysobjects where...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.