See below:
Gary said:
I think I see where you are going with the extra table
etc. I have done what you have said, but keep getting:
Can't find the macro "me."
You must be new to Access. When I refer to code I mean to put it in the
code screen. The box in the event page is not meant for the actual code.
This tells the event what to do (run a macro, a function, run code, etc.).
So when you type something into this box, it was thinking that this was the
name of a macro. Click in this box, you should then see elipses (...)
appear to the right. Click on this. The first time you do this for a
particular event, another window will pop up with 3 choices. This is where
you tell it what type of command to run. Pick "Code Builder". This takes
you to the code screen. The next time you do this it will take you to the
same choice. This is where you would enter the code I suggested. You can
also get to this code screen by pressing Alt-F11.
What I am trying to do is:
I have a form with customer details on it, I use a tab
control form to give more space for customers details. On
one of these tabs I would like to display the various
business card designs I have done for that customer.
Preferably with an "add"? button so that I can point to
the location of any new designs (jpg's) to be linked to
that customer and therefore displayed on that tab.
If there are more than one image, too be able to either
use a combo box to select image 1, 2, 3... or, to have
next / prev buttons to move between the available images
for that customer.
I hope that is clear?
Thank you. This help is invaluable!!! I have spent hours
trying to self teach access... it can be very hard work!
Cheers - Gary
This is very clear. Sounds like an interesting database. When you get to
it, instead of the combo box, try a list box. Have it stretched along the
entire left side of the form (or tab). This will show you how many images
threre are. Then clicking on the name will bring up the appropriate image.
It's a matter of preference, but I think it is much easier to pick from a
list box if you are going to repeatedly be picking something. The code
would be the same either way. Or you could just use a continuous subform
and show all the images without having to pick. The extra table will fit
perfectly with a subform. If you have a lot of images for one client then
you would just need to scroll.
Kelvin