473,320 Members | 2,189 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.

Locating an Object using VBA

How would I locate a database object, e.g. table, using VBA? After locating the object how would I add a column or field to the table?

Thanks!
Dave
Mar 1 '07 #1
3 1444
ADezii
8,834 Expert 8TB
How would I locate a database object, e.g. table, using VBA? After locating the object how would I add a column or field to the table?

Thanks!
Dave
Depending on the Access Version you are using, the most efficient way to locate Database Objects are the CurrentProject and CurrentData properties which are readily acessible via the Access Help Files. To add a Column/Field to a Table, you can use DAO, ADO, SQL, etc. Give me some more details, and I'll provide a Code Template.
Mar 1 '07 #2
Depending on the Access Version you are using, the most efficient way to locate Database Objects are the CurrentProject and CurrentData properties which are readily acessible via the Access Help Files. To add a Column/Field to a Table, you can use DAO, ADO, SQL, etc. Give me some more details, and I'll provide a Code Template.
Hi!

Thanks a lot for your reply. You gave me an idea on what to do. I ll just post any problems I ll encounter regarding this.

Dave
Mar 13 '07 #3
ADezii
8,834 Expert 8TB
Hi!

Thanks a lot for your reply. You gave me an idea on what to do. I ll just post any problems I ll encounter regarding this.

Dave
No problem.
Mar 13 '07 #4

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

Similar topics

4
by: Ney André de Mello Zunino | last post by:
Hello. Given a sorted collection of strings, what would a good (the best?) strategy be to allow fast access to an item, based on a search substring which should match the beginning of the...
1
by: Shiraz | last post by:
Hi It seems like none of the old posts get any follow up after a few messages, whether or not something constructive comes out of them, so I'm left with no choice but to repost an earlier...
0
by: dmlinliverpool | last post by:
I am running VS.net 2005 Express and Sql Server 2005 Express. The DB and VS are both on the same PC. I cannot connect to a database from within VS. In Database Explorer I click Connect To...
4
by: Ty | last post by:
Hi all Short version of my problem: i have a Datagrid (Flexgrid from ComponentOne) with a Datatable as source. I need to search a row in the datatable, using a primary key column in the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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: 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

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.