错误“无法打开操作查询” [英] error "cannot open the action query"

查看:101
本文介绍了错误“无法打开操作查询”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hallo


我试图使用visual c#将一行插入访问数据库并且iam收到错误无法打开动作查询。这是我的代码

hallo

Iam trying to insert a row into a access database using visual c# and iam getting an error " cannot open the action query". here is my code

展开 | 选择 | Wrap | 行号

推荐答案

请在[CODE]中附上您发布的代码[/ CODE]标签(请参阅如何提出问题)。


这使我们的专家更容易阅读和理解它。如果不这样做会给版主带来额外的工作,从而浪费资源,否则可以回答会员的问题。


将来请使用[CODE] [/ CODE]标签。


MODERATOR
Please enclose your posted code in [CODE] [/CODE] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members'' questions.

Please use [CODE] [/CODE] tags in future.

MODERATOR


你的CommandType应该是

CommandType.Text


使用TableDirect,我相信你只需要生成CommandText =" MyTableName"并且它将返回整个表的内容
Your CommandType should be
CommandType.Text

With TableDirect, I believe you would just make CommandText ="MyTableName" and it would return the contents of the entire table



你的CommandType应该是

CommandType.Text


使用TableDirect,我相信你只需要生成CommandText =" MyTableName"并且它将返回整个表的内容
Your CommandType should be
CommandType.Text

With TableDirect, I believe you would just make CommandText ="MyTableName" and it would return the contents of the entire table



hallo plater,


如果我使用CommanType.Text它给出我的错误没有给出一个或多个所需参数的值。在行中Command.ExecuteNonQuery();.


谢谢。


Dinesh。


hallo plater,

If i use the CommanType.Text it gives me error "No value given for one or more required parameters." in the line Command.ExecuteNonQuery();.

Thank you.

Dinesh.


这篇关于错误“无法打开操作查询”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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