ledgerr.rob
Registered User.
- Local time
- Yesterday, 23:05
- Joined
- Jun 3, 2012
- Messages
- 68
Hello,
Access 2007
Windows Vista
I have a DB where i keep track of family heirlooms and valuables. As part of that i've allowed for the incorporation of images, although not every item has a picture but some items have multiple images. Because i only have the need to see one image i have included a 'primary picture' checkbox that is used to pick that image for displaying in reports.
So far I've filtered items in the query
-Category: Done with using selection from report generator form
-In Family Still?: Done by using checkbox value from item entry form
I don't know how to:
-Determine IF the item has a picture THEN
-If the item has pictures, display only the ‘primary’ picture: Done by using the primary checkbox value from the item entry form
ELSE
-If the item has no pictures, still display the item with no picture
END IF
I think i could do this in VBA and point the query at the module to run the loop for each record but i don't know how to make the link. Maybe i should do the whole query in vba but not sure how or if i could do that.
Can i do this using sql viewer?
I have it set up now where I only display items that have pictures but when i run my reports i'm obviously missing some items.
Thanks for any advice
rob
Access 2007
Windows Vista
I have a DB where i keep track of family heirlooms and valuables. As part of that i've allowed for the incorporation of images, although not every item has a picture but some items have multiple images. Because i only have the need to see one image i have included a 'primary picture' checkbox that is used to pick that image for displaying in reports.
So far I've filtered items in the query
-Category: Done with using selection from report generator form
-In Family Still?: Done by using checkbox value from item entry form
I don't know how to:
-Determine IF the item has a picture THEN
-If the item has pictures, display only the ‘primary’ picture: Done by using the primary checkbox value from the item entry form
ELSE
-If the item has no pictures, still display the item with no picture
END IF
I think i could do this in VBA and point the query at the module to run the loop for each record but i don't know how to make the link. Maybe i should do the whole query in vba but not sure how or if i could do that.
Can i do this using sql viewer?
I have it set up now where I only display items that have pictures but when i run my reports i'm obviously missing some items.
Thanks for any advice
rob