Yes you can dynamically add columns to a table and then add the data to those columns but its a two step process from what I can remember. The first step is working with the table definition aspects and then the second part is dealing with the table content aspect. How it is done in Access (or if its allowed -- can't recall been a while since I used Access in this manner) I can not tell you but if you look up how to work with "table definitions" that should give you the how to add tables and columns to tables and more. Good luck.
--- On Fri, 5/21/10, jsivanan <jsivanan@yahoo.com> wrote:
From: jsivanan <jsivanan@yahoo.com>
Subject: [Access VBA Central] Indirect Reference Table update?
To: AccessVBACentral@yahoogroups.com
Date: Friday, May 21, 2010, 2:42 PM
If I have a tableA with columns table_name, column_name , column_value
can I read tableA and use it to add the data items specified in the columns of tableA?
For instance:
table_name col1_name col1_value col2_name col2_value
Employee emp_name Joe Smith birthdate 1/1/50
Employee emp_name Steve Jones birthdate 3/10/53
Transaction Tdate 3/1/2010 Tamount 35.00
Transaction Tdate 3/1/2010 Tamount 25.00
1) The program would open the table specified in the table_name
(That's the easy part since you can open a table specified by a string)
2) Then append a row to the table with the col1_value assigned to
the column specified in col1_name and the col2_value assigned to the column specified in col2_name?
Normally you know the column_names when you write the program and
code:
Table!Column = Value
But can you update a column not knowing it in advance? I.e. can you dynamically compose an sql insert statement and execute it in access?
Thanks,
Jnana
[Non-text portions of this message have been removed]
Tecnologia, programação e muito Visual FoxPro.
segunda-feira, 31 de maio de 2010
Re: [Access VBA Central] Indirect Reference Table update?
__._,_.___
MARKETPLACE
.
__,_._,___
Assinar:
Postar comentários (Atom)
Arquivo do blog
-
▼
2010
(3087)
-
▼
maio
(207)
- ]] XL-mania [[ Mengurutkan berdasarkan jobs
- Re: [Access VBA Central] Indirect Reference Table ...
- ]] XL-mania [[ Print data offset
- Re: ]] XL-mania [[ menemukan sheet
- ]] XL-mania [[ File - rules_and_tips
- Re: ]] XL-mania [[ cara export data pada file.text...
- Re: ]] XL-mania [[ menemukan sheet
- Re: ]] XL-mania [[ cara export data pada file.text...
- Re: ]] XL-mania [[ tanggal jatuh tempo
- Re: ]] XL-mania [[ cara export data pada file.text...
- Re: ]] XL-mania [[ menemukan sheet
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- ]] XL-mania [[ cara export data pada file.text ke ...
- Re: ]] XL-mania [[ Mengumpulkan data tanggal ditug...
- Re: ]] XL-mania [[ Mengumpulkan data tanggal ditug...
- Re: ]] XL-mania [[ menemukan sheet
- Re: ]] XL-mania [[ menemukan sheet
- RE: ]] XL-mania [[ tanggal jatuh tempo
- Re: ]] XL-mania [[ mengganti nanma Legend
- RE: ]] XL-mania [[ Mengumpulkan data tanggal ditug...
- Bls: ]] XL-mania [[ Sum bersusun hingga level tert...
- Re: ]] XL-mania [[ tanggal jatuh tempo
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- Re: ]] XL-mania [[ menemukan sheet
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- Bls: ]] XL-mania [[ Membuat formula melalui visual...
- Re: ]] XL-mania [[ Membuat formula melalui visual ...
- Re: ]] XL-mania [[ Membuat formula melalui visual ...
- Bls: ]] XL-mania [[ Selisih tanggal
- Re: ]] XL-mania [[ formula memecah data pada tabel
- Re: ]] XL-mania [[ Membuat formula melalui visual ...
- ]] XL-mania [[ mengganti nanma Legend
- Bls: ]] XL-mania [[ formula memecah data pada tabel
- ]] XL-mania [[ Mengumpulkan data tanggal ditugaskan
- ]] XL-mania [[ menemukan sheet
- RE: ]] XL-mania [[ Membuat formula melalui visual ...
- Re: ]] XL-mania [[ tanggal jatuh tempo
- Re: ]] XL-mania [[ Selisih tanggal
- RE: ]] XL-mania [[ rumus output
- Re: ]] XL-mania [[ Selisih tanggal
- Re: ]] XL-mania [[ gimana caranya format input dat...
- ]] XL-mania [[ formula memecah data pada tabel
- Re: ]] XL-mania [[ input untuk output beberapa kolom
- ]] XL-mania [[ Selisih tanggal
- ]] XL-mania [[ tanggal jatuh tempo
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- Re: [usuarios_fox] Novato busca asersoria
- ]] XL-mania [[ input untuk output beberapa kolom
- ]] XL-mania [[ Membuat formula melalui visual basi...
- Re: ]] XL-mania [[ gimana caranya format input dat...
- Re: ]] XL-mania [[ gimana caranya format input dat...
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- ]] XL-mania [[ gimana caranya format input data te...
- ]] XL-mania [[ Rekap Data dari beberapa folder
- Re: ]] XL-mania [[ Sum bersusun hingga level tertentu
- Re: ]] XL-mania [[ rumus output
- Re: ]] XL-mania [[ Sum bersusun hingga level tertentu
- Re: ]] XL-mania [[ rumus output
- ]] XL-mania [[ Sum bersusun hingga level tertentu
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- Re: ]] XL-mania [[ Rekap Data dari beberapa folder
- Re: [Access VBA Central] Indirect Reference Table ...
- [Access VBA Central] Indirect Reference Table update?
- [usuarios_fox] Novato busca asersoría
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- ]] XL-mania [[ rumus output
- Re: ]] XL-mania [[ World Cup 2010 Schedule
- ]] XL-mania [[ modifikasi popup default xl
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- Re: ]] XL-mania [[ Makro Hidden Row By Query...!
- Re: ]] XL-mania [[ Sort Data
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- Re: ]] XL-mania [[ Baca Angka di antara karakter l...
- Re: ]] XL-mania [[ Formula untuk menentukan pekan
- ]] XL-mania [[ Formula untuk menentukan pekan
- Re: ]] XL-mania [[ report oom erwin
- Re: ]] XL-mania [[ Sort Data
- Re: ]] XL-mania [[ Baca Angka di antara karakter l...
- ]] XL-mania [[ Sort Data
- Re: ]] XL-mania [[ Sort Data
- Re: ]] XL-mania [[ Support Scanner
- ]] XL-mania [[ ada yang punya formulir excel SPT P...
- ]] XL-mania [[ Baca Angka di antara karakter lain.
- Re: ]] XL-mania [[ Sort Data
- RE: ]] XL-mania [[ Penjumlahan hasil if fungsi
- Re: ]] XL-mania [[ Apakah bisa ambil data dari she...
- RE: ]] XL-mania [[ Penjumlahan hasil if fungsi
- Re: ]] XL-mania [[ Penjumlahan hasil if fungsi
- Re: ]] XL-mania [[ Sort Data
- Re: ]] XL-mania [[ klo untuk memecah huruf jadi pe...
- Re: ]] XL-mania [[ klo untuk memecah huruf jadi pe...
- Re: ]] XL-mania [[ klo untuk memecah huruf jadi pe...
- Re: ]] XL-mania [[ Sort Data
- Re: ]] XL-mania [[ klo untuk memecah huruf jadi pe...
- Re: ]] XL-mania [[ klo untuk memecah huruf jadi pe...
- Re: ]] XL-mania [[ klo untuk memecah huruf jadi pe...
- ]] XL-mania [[ report oom erwin
- Re: ]] XL-mania [[ Apakah bisa ambil data dari she...
- ]] XL-mania [[ Makro Hidden Row By Query...!
- ]] XL-mania [[ Penjumlahan hasil if fungsi
-
▼
maio
(207)
Nenhum comentário:
Postar um comentário