473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ColumnHistory to display on report

I am using this code to track and display historical entries entered into a "Comments" field everytime a user adds comments to a record. The field is a memo field with Append Only property set to Yes. This code works fine when used as an unbound field on a form, but I keep getting an #Error when displaying it on a Report. My intent is to have the historical entries display on a report as well. The report source is a query, so it is only returning the last entry made. Is there a better way to save historical entries with a date/time stamp for a record?

Code used:
Expand|Select|Wrap|Line Numbers
  1. =ColumnHistory([RecordSource],"Comments","[ID]=" & Nz([ID],0))
Mar 1 '12 #1
5 3298
Mihail
759 512MB
How you store this comments in your database ?
Mar 2 '12 #2
The "Comment" field is a memo type.
Mar 7 '12 #3
NeoPa
32,556 Expert Mod 16PB
As you give us so little information my answer must be very general, but I'd suggest you build the report based on a query that supplies the data you need to include in it.
Mar 8 '12 #4
What more info do you need? Any explanation on how to use the ColumnHistory function to display results on a report?
Mar 8 '12 #5
NeoPa
32,556 Expert Mod 16PB
Have a look at Access Answers Forum. There are two threads there you should have read that explain what you need to do when asking a question. If I'm doing that for you then I'm only going to encourage what is frankly a poor approach and attitude on your part.

Let us answer the questions and we'll leave you your responsibility, which is to ask them correctly.
Mar 8 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jason Chan | last post by:
I am beginner on Crystal Report. I want to ask a basic question. How can i display a report in ASP? I search for many web and try the sample from crystal dicussion but no luck, the code does...
3
by: Luis | last post by:
Not sure if this is the right group for my question... Is there any way I can display an Access report (stored in the database) on a page? Thanks, Luis
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
0
by: David Dvali | last post by:
Hello. I have just started using Microsoft Reporting tools and I like it very much. I'm using Microsoft SQL Server 2005 and Microsoft Visual Studio 2005 for generating reports in my ASP.NET web...
0
by: bonita | last post by:
In my ASP.NET page, I have 2 checkboxes for users to choose which crystal report they want to display. These two reports use different tables. If report1 has been choosen and displayed in the...
0
by: egp | last post by:
Hi guys, I have a database using Ms Access 2003 connected to VB6 using ADODB Connection and I want to know how to: - display Ms Access report in VB using VB code then print it out - backup and...
3
by: tausif | last post by:
i have made a software for medicine distributor i wanna show the reports for orders placed to a pharmaceutical company within specific period of time i wrote rs.Open "Select * from placedorder ...
1
by: rinku123 | last post by:
hi dear i want to Display report in Msword (.doc) can it possible. in vb6 i display some info in form using label controls. when i press report button it show in ms word file. if possible then...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
11
by: stateemk | last post by:
I have attached two pdf files of a report that I'm trying to get right. The Regio1000 attachment is correct. The Region9000 attachment is not correct. There should be a 9000 Undesignated Region 9 in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.