如何将计算控件(字符串)的结果保存在数据库表中 [英] how to save the result of calculated control (string) in a database table

查看:91
本文介绍了如何将计算控件(字符串)的结果保存在数据库表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如果有人帮我解决这个问题,我会非常感激!


我有一个字段名称, updatedName ,在我的数据库中,与 originalName 相同,供用户启动。我的表单中还有两个文本字段, newFirstName newLastName ,以及一个用于连接的文本框的计算控件( newName newFirstName newLastName 之间有空格。


逻辑是....

如果< b> newFirstName 不为空,则计算出的控件 newName 将显示 newFirstName originalLastName ,如果是新的输入 newLastName 中的信息,然后是......,反之亦然。


一旦在 newName中输入了新信息 ,它应该保存在我的数据库表的 updatedName 中。但是,由于 newName 控件未绑定,因此无法将其保存在表中的 updatedName 中。这是我的问题,任何人都可以帮我这个吗?谢谢!

Hi

If anyone helps me on this problem, I''d greatly appreciate it!

I have a field name, updatedName, in my database that is the same as originalName for a user to start. I also have two text fields in my form, newFirstName and newLastName, and a calculated control (newName) of a text box to concatenate newFirstName and newLastName with a space between.

The logic is....
If the newFirstName is not blank, then the calculated control, newName, will display the newFirstName and originalLastName, and if a new info in newLastName is entered, then ..., vice versa.

Once there''s a new info entered in newName, it should be saved in the updatedName in my database table. Since the newName control is unbound, however, it cannot be saved in updatedName in the table. This is my problem, and can anyone help me on this? Thanks!

推荐答案

loisk。


那么,是什么阻止你将FirstName和LastName存储在单独的表字段中?
Hi, loisk.

So, what prevents you from storing FirstName and LastName in separate table fields?



loisk。


因此,什么阻止你存储FirstName和LastName单独的表字段?
Hi, loisk.

So, what prevents you from storing FirstName and LastName in separate table fields?



FishVal!


表单上的计算控件(newName),用于连接两个字段(newFirstName& ; newLastName)是未绑定的,因此无法保存在我的db表中的字段(updatedName)中。我的问题是,无论如何都要绕过它。

Hi, FishVal!

The calculated control (newName) on the form, that concatenates the two fields (newFirstName & newLastName) is unbound, so it cannot be saved in the field (updatedName) in my db table. My question is that if there''s anyway to get around it.



FishVal!


表单上的计算控件(newName)连接两个字段(newFirstName& newLastName)是未绑定的,因此无法保存在我的db表中的字段(updatedName)中。我的问题是,无论如何都要绕过它。
Hi, FishVal!

The calculated control (newName) on the form, that concatenates the two fields (newFirstName & newLastName) is unbound, so it cannot be saved in the field (updatedName) in my db table. My question is that if there''s anyway to get around it.



这是可以理解的。为什么不在单独的表字段中存储FirstName和LastName?

This is quite understandable. Why not to store FirstName and LastName in separate table fields?


这篇关于如何将计算控件(字符串)的结果保存在数据库表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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