So, still building on my Apiary / Hive / Inspection application, converting everything over to VBA and it's going pretty well, learning stuff along the way and while I'm not to this point yet, I will be soon.
When I do certain things with a given Apiary or Hive such as make it in-active or move it, I decided I want to automatically enter a line in the Description / History field which is a Long Text field in each table as needed.
For instance, if I move a Hive from one Apiary to another, I want to add a new line something like, "Moved from Apiary XYZ on 01/01/2024" (or whatever the date is).
So, I would be using a pop-up form to complete the move and have it pulling data from the appropriate query that contains all the relevant fields and I'm thinking something like:
Then I would expect to see:Code:Form!Move_Hive!Description.Caption = "Hive moved from Apiary " & [Form]![Move_Hive]![Apiary] & " on " & Format$(Now(), "Short Date") & vbCrLf & [Form]![Move_Hive]![Description]
"Hive moved from Apiary XYZ on 9/12/24
Blah Blah Blah rest of existing Description"
Am I anywhere close ? Not sure about the use of the Caption in the first part but am using it for other things like plain text fields and other controls and buttons so figured it was appropriate.
One thing I am still figuring out is when I need the full path format for controls and when I only need the control name and when I need the brackets and when I don't. So that stuff may be wrong but I think adding it is worse than not when trying it for the first time.