运行时错误'3075':字符串中的语法错误...哈希字符串 [英] Run-time error '3075': Syntax error in string... Hash String

查看:146
本文介绍了运行时错误'3075':字符串中的语法错误...哈希字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


我在VBA中的Insert SQL语句中收到错误。这是对strPWH价值的轰炸。我可以看到strPWH的值是有效的(例如a%??ùò×wx ^¨'m¤ès??????à1Δfu??? D),如果我只是使用Debug.Print作为字符串,然后把它放在strPWH而不是strPWH,它工作正常。


这是我的子...

Hello All.

I am getting my error on an Insert SQL statement in VBA. It is bombing on the value for strPWH. I can see that the value for strPWH is valid (e.g. "a%??ùò×wx^¨′m¤"ès??????à1¤fu??D "), and if I just use Debug.Print for the string, and then put that in instead of the strPWH, it works fine.

Here is my sub...

展开 | 选择 | Wrap | 行号

推荐答案

你的变量在哪里:strUser,strPWH和strNa来自哪里?


另外,你是否可以先构建你的字符串,然后再调试它。所以我们可以看到它的最终字符串执行tes?
Where are your variables: strUser, strPWH, and strNa coming from?

Also, is it possible for you to build your string first, then debug.print it, so we can see the final string befor it executes?


  • strUser来自表单(Me.txtUser)
  • strPWH是一个来自Hash函数的全局变量
  • strNa也是一个全局的,来自伪随机数生成器


它是否在所有哈希值上失败?或者只是一些哈希?
Does it fail on all hashes? Or just some hashes?


这篇关于运行时错误'3075':字符串中的语法错误...哈希字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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