参数类型错误,超出可接受范围或与之冲突 [英] Arguments are of the wrong type, are out of acceptable range, or are in conflict with

查看:148
本文介绍了参数类型错误,超出可接受范围或与之冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友

我的项目是图书馆系统。

项目是Book Master表格。如果我从类型主文件和出版大师出版物中选择了书籍类型,则会出现此错误:


"参数类型错误,超出可接受的范围,或者互相冲突。


但如果我已手动存入金额并保存记录,则记录已成功保存。


选择Book类型和出版物我使用过组合框(CboBookType,CboPublication)


我在项目中的代码如下



这是用于显示出版物大师的出版物(在Book Master中)

展开 | 选择 | Wrap | 行号

解决方案


展开 | 选择 | Wrap | 行号


三个问题......

  1. 您使用的是什么版本的VB? (从代码看,它看起来像VB6)
  2. 哪一行产生错误?
  3. 假设它是执行SQL查询的那一行,那么究竟是什么值在那里取代寻找?您可以在那时中断代码(或者只是等待错误发生)然后使用VB的内置调试工具来检查或更改变量和属性。

< br>


三个问题......

  1. 您使用的是什么版本的VB? (从代码看,它看起来像VB6)
  2. 哪一行产生错误?
  3. 假设它是执行SQL查询的那一行,那么究竟是什么值在那里取代寻找?您可以在那时中断代码(或者只是等待错误发生)然后使用VB的内置调试工具来检查或更改变量和属性。



我正在使用Vb 6.0&错误已经出现在第7号和第7号线上。 3


Hi Friend
My project is a Library System.
In Project is Book Master form. If I''ve select Book Type from Type Master and Publication from Publication Master then this error has come:

"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. "

but if I''ve put amount manually and save the record then record has been successfully saved.

For selection of Book Type and Publication I''ve used Combo Box (CboBookType, CboPublication)

My code in project is as follows


This is for showing Publication (in Book Master) from Publication Master

Expand|Select|Wrap|Line Numbers

解决方案

Try to see what in your selected value using message like this before

Expand|Select|Wrap|Line Numbers


Three questions...

  1. What version of VB are you using? (From the code, it looks like VB6)
  2. What line produces the error?
  3. Assuming it''s one of the ones that executes an SQL query, what exact value is being substituted in there to look for? You can interrupt the code at that point (or just wait for the error to occur) then use VB''s built-in debugging tools to examine or change variables and properties.


Three questions...

  1. What version of VB are you using? (From the code, it looks like VB6)
  2. What line produces the error?
  3. Assuming it''s one of the ones that executes an SQL query, what exact value is being substituted in there to look for? You can interrupt the code at that point (or just wait for the error to occur) then use VB''s built-in debugging tools to examine or change variables and properties.

I''m using Vb 6.0 & Error has come on line No. - 7 & 3


这篇关于参数类型错误,超出可接受范围或与之冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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