使用定义表在记录中查找 [英] Using definitions table for lookup in records

查看:66
本文介绍了使用定义表在记录中查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我在这里苦苦思索如何使用一个表中的记录来查找另一个表记录中的匹配。


Table1包含查找术语,称为''defTable'',它有一个字段''名称''和记录:








小马


表2被称为''custTable'',它有一个字段''详细信息''和记录:


MrsSmithhasaCatwhosenameistabby

johnthoughhisFishwassick

JasonsDoghasbeenshedingthisweek


我想搜索defTable中的所有记录在custTable的每个记录中匹配并返回匹配文本





MrsSmithhasacatwhosenameistabby返回Cat

johnthoughhisFishwassick返回Fish

JasonsDoghasbeensheedingthisweek返回狗


感谢您的时间


马克。

解决方案

Mark,

如果您对表关系有更多了解,那么您应该注意问题。

关联表格。 (1:很多)..


defTable custTable


嘿那里,


不确定我明白了吗?我关联表1:很多并尝试输入标准instr(1,Name,Details)的查询,但是Details是类型备忘录,因此加入失败...


谢谢,


Mark


为什么不在custTable中创建num字段并使用defTable中的Auto number字段加入。

那将是做。 您无法使用备注类型字段创建关系


Hi all,

Am struggling here with how to use records in one table to lookup matches in another table records.

Table1 contains the lookup terms and is called ''defTable'' which has a Field ''Name'' and records:

Cat
Dog
Fish
Pony

Table2 is called ''custTable'' which has a Field ''Details'' and records:

MrsSmithhasaCatwhosenameistabby
johnthoughhisFishwassick
JasonsDoghasbeenshedingthisweek

I want to search all the records in defTable for a match in each record of custTable and return the match text

i.e.

MrsSmithhasacatwhosenameistabby returns Cat
johnthoughhisFishwassick returns Fish
JasonsDoghasbeensheedingthisweek returns Dog

Thanks for your time

Mark.

解决方案

Mark,
You problem should be take care of if you know more about table relationships.
Relate the tables. (1:many)..

(defTable:custTable)


Hey there,

Not sure I understand? I related the tables 1:many and tried entering a query with criteria instr(1,Name,Details) but Details is type memo so the join fails...

Thanks,

Mark


Why not create num field in custTable and join with Auto number field in defTable.
That''ll do. You cannot create relationships using memo type fields


这篇关于使用定义表在记录中查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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