将代码存储在列中并使用它 [英] storing code in a column and using it
本文介绍了将代码存储在列中并使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含数据的列,例如year(date)
或date-365
.
I have a column that has data, such as year(date)
or date-365
.
如何将此文本用作代码而不是文本?意思是,我希望能够做类似的事情
How do I use this text as code, not as text? Meaning, I'd like to be able to do something like
me.ProjectName="ddddd " & MyColumnWithCode
并获得ddddd 2017
或ddddd 10/21/2016
我以我能想到的一切方式做过Google,却一无所获.
I did google in every way I could think of and didn't get anything.
推荐答案
您可以使用:
Me.ProjectName="ddddd " & Eval(MyColumnWithCode)
,但不包含您当前的代码.它必须显示为:
but not with your present code. It has to read:
Year(Date())
Date()-365
这篇关于将代码存储在列中并使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文