将参数从MS Access传递给C# [英] Pass Parameter From MS Access to C#

查看:62
本文介绍了将参数从MS Access传递给C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Access 2007中用一个参数写了一个查询然后将它发送到C#

但是除了参数和我作为参数插入的字段之外所有的字段都来了

tblMaint .mShift = [shift]

shift是我的参数,mShift是我的Field

I Wrote a query with one parameter in access 2007 then send it to C#
But all Fields come except the parameter and the field that I inserted as parameter
tblMaint.mShift=[shift]
shift is my parameter and mShift is my Field

推荐答案

你不能从Access查询发送参数C#(无论它意味着什么)!



您可以使用ADO.NET构建自己的查询。请参阅我之前的回答: MS Access未更新 [ ^ ]
You can't send parameter from Access query to C# (whatever it means)!

You can build your own query using ADO.NET. Please see my past answer: MS Access Not Updated[^]


这篇关于将参数从MS Access传递给C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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