将表中的Access 2003查找字段复制到新数据库中 [英] Access 2003 lookup field in table copied to the new database

查看:114
本文介绍了将表中的Access 2003查找字段复制到新数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题已关闭以从我的数据库中删除复制数据。

为此,我创建新数据库并编写vba代码,以便从旧的可复制数据库传输所有对象,除了表格。

对于表我尝试编写代码,它创建包含所有字段的表,不包括系统字段。

但是,我的旧表有一些查找字段。

存储的功能以及如何将其应用到新表中?

My question is closed to remove replication data from my database.
For that I create new database and write vba code for transfer all objects from old replicable database, except tables.
For tables I try to write code, which create tables with all fields, excluding system fields.
However, some my old tables have lookup fields.
Where this features stored and how I can apply it to the new table?

推荐答案

您确定要真的这样做吗?




有很好的理由不使用 sharepoint应用程序之外的邪恶查找字段 。你实际上提供了一个很好的例子!


但是,如果你在被警告不要这样做之后坚持,那么你需要创建并设置显示字段的控制属性


我强烈建议不要在acc2013-webapplication或Access-SharePoint应用程序之外执行此操作!!!!


设置后,字段'的显示控件的记录源可以设置。


我的帖子正在消失 - 我认为啊修复了它!
Are you sure you really want to do this?



There are very good reasons not to use the Evil Lookup Field outside of a sharepoint application. You''ve actually provided a prime example!

However, if you insist after being warned not to do this, then you will need to create and set the display control property for the field

I so highly recommend against doing this outside of a acc2013-webapplication or Access-SharePoint application!!!!

Once set, the recordsource of the field''s display control can be set.

My posts are disappearing - ah fixed it I think!


我们遇到了一些技术问题。 ..请耐心等待我们的程序员看看。


Thnx

-Z
We''re experiencing some technical difficulties with this thread... please be patient while our programmers take a look.

Thnx
-Z


为Diplodok发帖:

Posting for Diplodok:


zmbd

感谢您的回复


1st,

我不使用网络应用程序ication。

我创建的数据库仅供我自己的Pc使用


第二,

我写的UI是几乎操作的数据库和使用表单,但是,有时我需要直接访问表并手动更正/插入信息。在这种情况下,查找字段对我来说非常有用。


但是,我现在必须纠正我的问题。

我查了''属性这个领域的对象似乎,我找到了我需要的信息存储位置。

所以我必须更新一些字段属性来创建查找字段。


我想,如果我在新表中创建现有字段的完整副本,我将需要。


我尝试使用下面的代码为表创建字段,但它不起作用。


td - 来自旧数据库的现有表格,

nt是我在新数据库中创建的新表,其中放置了代码,

ntf是我试图附加到新表的字段
Hi, zmbd
Thank you for reply

1st,
I do not use web application.
The database I create is for my own needs only on my own Pc

2nd,
I write UI for database and use forms for almost operations, but, sometimes I need got to tables directly and correct/insert info manually. In that case the lookup fields are very useful for me.

However, I have to correct my question now, I think.
I checked ''properties'' object of the field and it seems, I found where information I needed is stored.
So I have to update some of field properties for creating lookup field.

I supposed, if I create full copy of the existing field in the new table, I will got I need.

I tried to create field for table with the code below, but it does not work.

td - is existing table from old database,
nt is new table I created in new database, where code is placed,
ntf is field I try to append to new table
展开 | 选择 | Wrap | 行号


这篇关于将表中的Access 2003查找字段复制到新数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆