如何在窗体上的MS Access表中查找最后一个字段名称? [英] How to lookup the last field name in a MS Access table on a form?

查看:61
本文介绍了如何在窗体上的MS Access表中查找最后一个字段名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在test.mdb Access数据库中有一个如下表。在表单上,​​我想使用查找来捕获表单上的文本中的 最后一个字段名称 ,在这种情况下,它是200906.

通过使用我在网站上搜索的一些代码,我只能看到所有的字段名称,我怎样才能捕获交叉表查询中的最后一个字段名称。


谢谢,SunnyC

展开 | 选择 | Wrap | 行号

解决方案

您好SunnyC !

欢迎使用Bytes :)

您可以在访问答案论坛


您是否使用SQL访问查询表?

如果可以的话请发布它,以便我们可以看到你在做什么?


-Frinny


我在网上搜索并得到了鳕鱼e我的报告,但因为我是初学者。需要帮助来获取如何捕获最后一个字段名称并将其显示在表单上的文本框中。


这里是我的代码:

展开 | 选择 | Wrap | 行号


看起来像VB(6)代码。

您是在编写VB6应用程序还是Access应用程序?

您是否知道如何使用SQL从数据库中检索信息?


我没有看到您声明变量db的位置。

I have a table as below in test.mdb Access database. on a form, I want to use lookup to capture the the last field name in a text on the form, in this case, it is 200906.
by using some code I searched on the web site, I only can see all the field names, How can I just capture the last field name in the crosstab query.

Thanks, SunnyC

Expand|Select|Wrap|Line Numbers

解决方案

Hi SunnyC!
Welcome to Bytes :)
You can find answers and ask Access questions in the Access Answers Forum.

Are you using SQL to access the lookup table?
If so could you please post it so that we can see what you''re doing?

-Frinny


I searched the web and got the code for my report, but since I am a beginner. need help on how to capture the last field name and show it on a text box on a form.

here is my code:

Expand|Select|Wrap|Line Numbers


That looks like VB (6) code.
Are you programming a VB6 Application or an Access application?

Do you know how to use SQL to retrieve information from a database?

I don''t see where you''ve declared your variable "db".


这篇关于如何在窗体上的MS Access表中查找最后一个字段名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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