从Visual Basic对ASC和.mdb文件进行排序 [英] sort ASC an .mdb file from visual basic

查看:103
本文介绍了从Visual Basic对ASC和.mdb文件进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我以这种方式更改了Access文件。

Hello,
I made a change to an Access file this way.

展开 | 选择 | 换行 | 行号

推荐答案

展开 | 选择 | Wrap | 行号


您只需要将ASC(用于升序)关键字添加到SQL字符串。 ASC只对记录集进行排序,它不会影响数据库表中的实际数据。


只需按照上一篇文章的建议进行操作。
You just need to add the ASC (for ascending) key word to the SQL string. ASC only sort the recordset, it does not affect the actual data in the database tables.

Just do as suggested in the previous post.


谢谢你的答复,但它不起作用,没有错误,但当我输入mdb文件时,他们没有排序...


i也尝试更新D集邮局=右(邮局,9)其中邮局不喜欢邮件asc的'',mol%''顺序;但它给了我这个错误(缺少分号;在sql语句结束时)我真的不明白..
thank you for you''re replyes,but it doesnt works,no error but when i enter the mdb file they arent sorted ...

i also try "update D set postoffice=RIGHT(postoffice,9) where postoffice not like '',mol%'' order by postoffice asc;" but it gives me this error (missing semicolon ; at the end of sql statement) wich i really dont get it..


这篇关于从Visual Basic对ASC和.mdb文件进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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