Access-o-Mania

Access-Forum (Deutsch/German) => Tabelle/Abfrage => Thema gestartet von: eugenewright am September 18, 2024, 11:32:02

Titel: Check the status of attachments in the database
Beitrag von: eugenewright am September 18, 2024, 11:32:02
Hi guys, How to check if file is stored in attachment field? What I want is that when uploading an attachment for a document there should be an output status column of "Completed". This is very convenient.
Does anyone know how to use the query? Thanks!
Titel: Re: Check the status of attachments in the database
Beitrag von: Knobbi38 am September 18, 2024, 12:38:51
Hello,

Attachments are provided as recordsets in a DAO.Recordset2. This can be opened and then you can determine the number of records in the recordset.


For an example of access, see here:
https://learn.microsoft.com/en-us/office/client-developer/access/desktop-database-reference/recordset2-object-dao (https://learn.microsoft.com/en-us/office/client-developer/access/desktop-database-reference/recordset2-object-dao)