jimbrooking
Registered User.
- Local time
- Today, 06:24
- Joined
- Apr 28, 2001
- Messages
- 210
I have what I thought would be a pretty simple problem: add a new field to a linked table. The application is a large for-sale database installed at a number of client sites. I was intending to sneak into an update code to check if the field was in the table already using something like DCount("newFieldName","LinkedTableName"), which will give an error if the field doesn't exist, a number of records if it does, including 0 if the field exists but there aren't any records. That seems to work OK, but now what? I had indended to just run a SQL statement to ALTER TABLE LinkedTableName ADD COLUMN... but Access won't let me do that with a linked table.
I've been been beating my head against a wall for a few hours, and wonder if anyone here might have a code snippet they could share that would (a) add the column to the linked table directly, or (b) replace the linked table by a local table I construct by adding all the linked table's data to a new local table which has the extra column in it.
Oh, I've been trying to stick with ADO/X, but any solution - DAO or ADO/X will be appreciated.
Thanks - this is probably easy and I'm missing something fundamental.
Jim
I've been been beating my head against a wall for a few hours, and wonder if anyone here might have a code snippet they could share that would (a) add the column to the linked table directly, or (b) replace the linked table by a local table I construct by adding all the linked table's data to a new local table which has the extra column in it.
Oh, I've been trying to stick with ADO/X, but any solution - DAO or ADO/X will be appreciated.
Thanks - this is probably easy and I'm missing something fundamental.
Jim