Jump to content

Recommended Posts

Posted

I have an asset database which is pretty flat in design. It has a record for "Comments", and at the minute these just get overwritten next time something else is to be recorded.

 

I was trying to think of a way that I could record everyting that is entered in the comments record, to buid a history of that asset. But I cannot think how i would go about it. Im thinking another table, linked to the asset, but how to go about implementing it I'm not too sure.

Posted

Heres how I would do it, you have your assets table obviously with a uid to identify them and act as the primary key. You then have a seporate comments table which has its own uid to id comments and a AssetUID which is the UID of the asset the comment relates to, you want a comment field obviously and probably a date field to.

 

You then set up a relationship between the UID of the Asset and the ASSetUID field of the comments table. This will be a one to many relationship as there will be one asset to possibly many comments.

 

To retrive the comments for each field you could use a subform in access which linked to the comments table which will filter based on the relationship or use a query if you are grabbing the data for an external app like a web page.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • 149 What is your preferred operating system (PC)

    1. 1. Operating systems:


      • MacOS
      • Windows 10
      • Windows 11
      • Windows Vista
      • ChromeOS
      • Other (reply)

×
×
  • Create New...