数据不匹配消息 [英] Data mismatch message

查看:65
本文介绍了数据不匹配消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法让我的SQL字符串正常运行。我修改了一个在线应用程序供我使用,但我认为因为这些字段都是文本。我不断收到错误13:类型不匹配。


我有三个列表框,一个用于捕获ID号(数字),城市(文本)和区域(文本)。 br />
有一个按钮可以提取以下变量中的所有响应:


strID

strCity

strArea


SQL字符串如下:

I am having trouble getting my SQL string to operate correctly. I have modified an online application for my use but I think because the fields were all text. I continuously receive an Error 13: Type mismatch.

I have three list boxes, one to capture the ID number (number), the City (text) and Area (text).
There is a button that pulls all the responses in the following variables:

strID
strCity
strArea


The SQL string is the following:

展开 | 选择 | 换行 | 行号

推荐答案

如果这就是你构建SQL字符串的方式,
If this is how you''re building youre SQL string,
展开 | 选择 | Wrap | 行号


@Rabbit

是的,我知道你要去哪里。实际上,和strAreaCondition和strCityCondition表示选项按钮的选择。


这些条件代表逻辑AND或OR。


因此,假设我们有以下字符串变量值,
@Rabbit
Yep, I see where you are going. Actually, the and strAreaCondition and strCityCondition represents the selection from the option button.

These conditions represent a logical AND or OR.

So let''s say we have the following string variable values,
展开 | 选择 | Wrap | 行号


不,问题保持不变。鉴于条件变量是逻辑运算符。你得到的是
No, the problem stays the same. Given that the condition variables are logical operators. What you get is
展开 | 选择 < span class =codeDivider> | Wrap | 行号


这篇关于数据不匹配消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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