由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Please help on replacing character in VB
相关主题
Re: Please help on replacing character i怎么从VBA里读SQL procedure?我的code有什么问题?
请教:SSIS输出到,某column中含隐藏字符'口',一条记录分成两问一个数据处理的问题,该如何实现单列转多行?14楼有图更新 (转载)
Is "Dim mydb as database" a user-defined datatypeAccess VBA 语句 问题请教 (转载)
ASP高人们帮忙看看这几行 SQL codes的问题,谢乐!问一个 Access VBA programming的问题
sql请教Any thoughts about two slowly chaning dimensions have FK relationship
Need help on VBA! Please!Babylon, will iAS replace OAS?
Access门外汉问题求教Help on migrating oracle to db2, outerjoin
access 里怎么删除multiple highlighted selection?谁对paradox熟?
相关话题的讨论汇总
话题: vb话题: txtname话题: dim话题: replacing话题: character
进入Database版参与讨论
1 (共1页)
l**u
发帖数: 67
1
guys, someone please help in my code. It drives me crazy!!! wuwuwu....
The question is as following:
In a form, I have a text box named: txtName which contains customer name.
If the customer name is for example: Cindy's.
Then the txtName = "Cindy's"
Now, in my code, I need to check this txtName field. if contains the single
prime ('), I need to replace it as two single primes('')
My code is:
Dim Oldtxt as String
Dim Newtxt as String
Dim ocn as new connect
....
Oldtxt = txtName.text
Newtxt = Old
aw
发帖数: 127
2
i assume u use vb .net, right? the code looks fine with me and i can get it
right on my box. check other lines in between which you may ignore.
if u r using vb6, then it's wrong.

【在 l**u 的大作中提到】
: guys, someone please help in my code. It drives me crazy!!! wuwuwu....
: The question is as following:
: In a form, I have a text box named: txtName which contains customer name.
: If the customer name is for example: Cindy's.
: Then the txtName = "Cindy's"
: Now, in my code, I need to check this txtName field. if contains the single
: prime ('), I need to replace it as two single primes('')
: My code is:
: Dim Oldtxt as String
: Dim Newtxt as String

1 (共1页)
进入Database版参与讨论
相关主题
谁对paradox熟?sql请教
这句SQL怎么写?Need help on VBA! Please!
PL/SQL function 使用求教?Access门外汉问题求教
WHERE-CLAUSE 求助 (很复杂)access 里怎么删除multiple highlighted selection?
Re: Please help on replacing character i怎么从VBA里读SQL procedure?我的code有什么问题?
请教:SSIS输出到,某column中含隐藏字符'口',一条记录分成两问一个数据处理的问题,该如何实现单列转多行?14楼有图更新 (转载)
Is "Dim mydb as database" a user-defined datatypeAccess VBA 语句 问题请教 (转载)
ASP高人们帮忙看看这几行 SQL codes的问题,谢乐!问一个 Access VBA programming的问题
相关话题的讨论汇总
话题: vb话题: txtname话题: dim话题: replacing话题: character