Image Gallery (1 Viewer)

kitty77

Registered User.
Local time
Today, 11:51
Joined
May 27, 2019
Messages
712
Does anyone know an easy way to delete images from the image gallery? I can only delete one at a time by inserting images and the dropdown appears, right hand click and delete image. Looking for a easy way do delete several at a time.

Thanks...
 

theDBguy

I’m here to help
Staff member
Local time
Today, 08:51
Joined
Oct 29, 2018
Messages
21,468
Hi. You could try using a DELETE query. Let me see if I can find an example.

Edit: Okay, you could try something like this:
SQL:
DELETE FROM MSysResources WHERE ID In(1,4,6,9)
PS. Make sure you try it out on a copy first and make sure you have a backup copy of your db. If you don't know the IDs you want to delete, you could also try using the image names. Hope that helps...
 

jdraw

Super Moderator
Staff member
Local time
Today, 11:51
Joined
Jan 23, 2006
Messages
15,379
You may find some info in the Similar Threads at bottom of this page.
 

isladogs

MVP / VIP
Local time
Today, 16:51
Joined
Jan 14, 2017
Messages
18,216
Just to add to the DBGuy's answer.
The MSysResources table is an editable system table which is normally hidden. It also contains other info such as themes.
As it uses an attachment field, it is linked to another deep hidden system table which stores the attachment field info.
As a result, the delete query does not always remove items from the image gallery until you restart the app or compact it
 

Users who are viewing this thread

Top Bottom