How do I display a memo field to a Form in Access

左心房为你撑大大i 提交于 2020-03-06 08:09:32

问题


I have looked at the previous questions asked relating to this but haven't been able to find a solution. I have a table with a memo field called "Comments", and I am trying to display all the history of the field in the form. In the text box properties in the control source I have this:

ColumnHistory([Positions], [Comments], [JobID=]&[JobID]) (Positions is the table name, Comments is the memo field, and JobID is the primary key indentifier). I get a #Name error in the field and I dont understand why. I am very inexperienced with databases but am trying to learn and do this project. Any Help is appreciated Thank you


回答1:


First of all, make sure the Comments field's AppendOnly property is set to True or this will not work.

Next, the code in the text box control should read:

= Application.ColumnHistory("Positions", "Comments", "JobID=" & Me.JobID & "")

If any of your variables, objects or controls is different than stated, you might need to tweak that a bit.

I see you're new here, so please make sure that you confirm whether or not this worked for you so future visitors with similar questions will know if the answer is viable.



来源:https://stackoverflow.com/questions/24207509/how-do-i-display-a-memo-field-to-a-form-in-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!