Modify_inc
Registered User.
- Local time
- Yesterday, 22:05
- Joined
- Mar 25, 2013
- Messages
- 20
I just want to create a history of my notes in each of my records.
I have spent all day, and I feel I am no closer to that goal.
Searching the net, I found I could use the Column History function using the Append Only value. I thought, well this will work for now,and it should be straight forward. Now two hours later, I'm getting desperate.
=ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))
This is the command that is plastered all over the internet. Yet I have changed, it, modified it, and nothing but #Name?, #Size!, #Errors is all I ever get.
Can someone please enlighten me how to properly use this function/command?
Here is what I have:
Table: ClientInformation - This table has the 'Notes' field, which is set to 'Long Text' for Data Type since Access 2013 doesn't use memo type anymore. (I hope this isn't part of the problem)
Form: Main - Created a text box and named it, txtID (My understanding is this is where the above command is entered)
I also have the Notes field in the form
So I changed the above command from:
=ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))
to
=ColumnHistory([RecordSource],"Notes","[ID]=" & Nz([txtID],0))
I get confused about the ID variables, because there is two of them and I do not know code. Should I change both ID's to txtID? I have tried many different ways with no success.
If I do need to specify my table instead of using the default RecordSource, do I enter the table name ClientInformation with brackets and quotes or just quotes? I have tried many different ways with no success.
I also found this in a forum, and it is similar but different from the above command. Should note, it did not work for me either.
=ColumnHistory("MemoFieldName", "TableName", "ID=" & [ID])
"Where MemoFieldName is the name of the memo field, TableName the name of the table containing the memo field, and ID the name of the primary key field of this table (which should be available in the Record Source of the report)."
It says to use the primary key of the table. In that case, I would use ClientID for ID instead of txtID, since ClientID is the primary key in my ClientInformation table, but then I don't know which ID to substitute since there are two ID's. I tried multiple ways with no success.
Hope someone more knowledgeable than myself can point me in the right direction.
Thanks!
Mike
I have spent all day, and I feel I am no closer to that goal.
Searching the net, I found I could use the Column History function using the Append Only value. I thought, well this will work for now,and it should be straight forward. Now two hours later, I'm getting desperate.
=ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))
This is the command that is plastered all over the internet. Yet I have changed, it, modified it, and nothing but #Name?, #Size!, #Errors is all I ever get.
Can someone please enlighten me how to properly use this function/command?
Here is what I have:
Table: ClientInformation - This table has the 'Notes' field, which is set to 'Long Text' for Data Type since Access 2013 doesn't use memo type anymore. (I hope this isn't part of the problem)
Form: Main - Created a text box and named it, txtID (My understanding is this is where the above command is entered)
I also have the Notes field in the form
So I changed the above command from:
=ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))
to
=ColumnHistory([RecordSource],"Notes","[ID]=" & Nz([txtID],0))
I get confused about the ID variables, because there is two of them and I do not know code. Should I change both ID's to txtID? I have tried many different ways with no success.
If I do need to specify my table instead of using the default RecordSource, do I enter the table name ClientInformation with brackets and quotes or just quotes? I have tried many different ways with no success.
I also found this in a forum, and it is similar but different from the above command. Should note, it did not work for me either.
=ColumnHistory("MemoFieldName", "TableName", "ID=" & [ID])
"Where MemoFieldName is the name of the memo field, TableName the name of the table containing the memo field, and ID the name of the primary key field of this table (which should be available in the Record Source of the report)."
It says to use the primary key of the table. In that case, I would use ClientID for ID instead of txtID, since ClientID is the primary key in my ClientInformation table, but then I don't know which ID to substitute since there are two ID's. I tried multiple ways with no success.
Hope someone more knowledgeable than myself can point me in the right direction.
Thanks!
Mike