I have a cat rescue welfare database project in Access (Office 365 subscription) as a work in progress. Two of the text fields I have on each record for each cat are CatName and ClinicalNotes.
Both these fields are on the same form. The ClinicalNotes field retains the observation notes and has a date and time stamp which the user can punch with a button on the form.
I use a SendKeys macro datetimestamp which, when initiated by the user, basically copies the existing text in the ClinicalNotes field to the clipboard, stamps the date and time and then repastes the copied text with the cursor blinking under the date and time stamp for further text entry by the user. The date and time stamp can be punched as often as required.
The date and time stamp output looks like this: 05-Sep-20@10:04:11 PM using SendKeys and the Control Name ClinicalNotes as the Go To Control.
The field may populate, after repasting, like this:
05-Sep-20@11:00:00 PM
(cursor is now here)
05-Sep-20@10:04:11 PM
Focal seizure, 15 minutes apart.
05-Sep-20@09:10:10 PM
Focal seizure, 5 minutes apart. Given 2mg nutrients.
Whilst it is possible to get the CatName by copying it into the clipboard fairly easily, it's presence in the clipboard means that the copied text from the ClinicalNotes, due for repasting, is no longer available for immediate pasting withe Ctrl v.
This then creates the challenge question. How do I add the catname to the end of the date and time stamp? e.g. 05-Sep-20@10:04:11 PM Cookie whilst the clipboard is holding the pastable ClinicalNotes text?