在vb.net的文本框中自动生成序列号 [英] autogenerate serial number in text box in vb.net

查看:192
本文介绍了在vb.net的文本框中自动生成序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hiii



i希望使用vb.net程序在文本框中自动生成序列号。请帮助我。

i am using vs 10和access 7数据库

解决方案

让数据库在autoincrement列中生成数字。您所做的就是提供足够的细节来在数据库表中创建新记录,然后检索新创建的记录以获取数据库分配的值。


使用属性AutoCompleteSource = CustomSource并生成TextBox的CustomSouce值

hiii

i want to autogenerate serial number in text box by using vb.net program.so please help me.
i am using vs 10 and access 7 database

解决方案

Let the database generate the number in an autoincrement column. All you do is provide enough detail to create a new record in the database table, then retrieve that newly created record to get the value assigned by the database.


Use Property AutoCompleteSource=CustomSource and Generate CustomSouce Values for your TextBox


这篇关于在vb.net的文本框中自动生成序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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