如何在visual basic 2017中获取访问字段属性 [英] How to get access field property in visual basic 2017

查看:84
本文介绍了如何在visual basic 2017中获取访问字段属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



对于我的程序,我想使用通过Access 2016创建的accdb数据库。现在我想设置文本框等等它具有与数据字段相同的长度和属性(短文本,长文本,数字左右)。



有没有办法在视觉中获取此类信息基本2017?表格和行名称都是已知的。







谢谢,

Hans



我的尝试:



我搜索了互联网,但无法找到任何有关此信息。我唯一看到的是架构信息,但我对此并不完全清楚。

解决方案

只是想知道它是否有用:你可以用visual basic来设置你的表格和字段,然后你知道它们的大小,它们接受的格式等等。

但是当然如果你想使用已经创建的数据库,这可能是太多的工作。

Dear all,

For my program I want to use accdb database, created with Access 2016. Now I want to set the textboxes and such so that it will have the same length and property (short text, long text, number or so) as the datafield has.

Is there a way to get this kind of info in visual basic 2017? the table and row name are both known.



Thank,
Hans

What I have tried:

I have search the internet, but can't find any information about this. The only thing I saw was schema info, but this I don't understand exactly.

解决方案

Just wondering if it's any use: you could use visual basic to set up your tables and fields and then you know what their size is, what format they accept, etc.
But of course if you want to work with an already created database, this may be too much work.


这篇关于如何在visual basic 2017中获取访问字段属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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