传递字符串出错 [英] Error passing string

查看:83
本文介绍了传递字符串出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


尝试将值从文本框传递到另一个表单,我收到错误。

错误是这样的:


Microsoft Office Access无法找到字段|在你的表达中提到。


我所拥有的是一个名为 names_form",带有一个名为txtname的文本框和另一种称为searching_form的形式,带有名为lbl_searchedtext的标签

当我在txtname中输入一些文字时然后我点击一个按钮,我想在标签中显示文字 lbl_searchedtext"在searching_form上。


我现在拥有的代码就是这个代码,并放在searching_form上。加载事件。

展开 | 选择 | Wrap | 行号

解决方案

我不得不再次对NeoPa说对不起,试过使用[code]标签,但我可以看到我再次使用worg。

你介意给我发一条消息,说明如何使用这些标签吗,请,我不想要被禁止或什么的。

谢谢,再次抱歉!


写你的帖子时就这样做吧


[code]

''你的代码在这里

[/ code]


实际执行此操作时,必须消除括号与代码 / code 之间的空格才能使其正常工作。


Linq ; 0)>


试试这个:

展开 < span class =codeDivider> | 选择 | Wrap | Line编号

Hi all

Trying to pass the value from a textbox to another form and i get an error .
The error is this :

Microsoft Office Access can''t find the field "|" referred to in your expression.

What i have is a form called " names_form", with a textbox called "txtname" and another form called "searched_form" , with a label called "lbl_searchedtext"
When i type some text into "txtname" and i click a button , i want to display the text in the label " lbl_searchedtext" on the "searched_form".

The code i have now is this, and is placed on the "searched_form" load event.

Expand|Select|Wrap|Line Numbers

解决方案

I have to say sorry again to NeoPa , tried to use the [code] tag ,but i can see that i got it worg again .
Do u mind sending me a message explaing how to use those tags , please ,cose i don''t want to be banned or something.
Thanks , and sorry again!


When writing your post simply do it like this

[ code ]
''Your code goes here
[ /code ]

When you actually do this, you have to eliminate the spaces between the brackets and code and /code for it to work.

Linq ;0)>


Try this:

Expand|Select|Wrap|Line Numbers


这篇关于传递字符串出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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