Hi Team, my Asset Register DB has a table which includes the following fields:
A yes/no field [Image] to indicate if a Photo is required.
An attachment field to contain the photo [Photo]
In the form code, me!Photo.attachmentcount returns 0 or 1 for the current record, no attachments or one attachment (I assume).
I need to get the attachmentcount from the table in VBA code, and/or in a query and/or in the filter for a report.
I can't work out the code required. For example:
With rstTemp1
While not .eof
If !Image = true then
???? code needed to get the attachmentcount from the !Photo field
... more code
end if
.movenext
wend
end with
Thanks in advance for the help.
I'm feeling really dumb right now.
A yes/no field [Image] to indicate if a Photo is required.
An attachment field to contain the photo [Photo]
In the form code, me!Photo.attachmentcount returns 0 or 1 for the current record, no attachments or one attachment (I assume).
I need to get the attachmentcount from the table in VBA code, and/or in a query and/or in the filter for a report.
I can't work out the code required. For example:
With rstTemp1
While not .eof
If !Image = true then
???? code needed to get the attachmentcount from the !Photo field
... more code
end if
.movenext
wend
end with
Thanks in advance for the help.
I'm feeling really dumb right now.