Hi John
Ok my database is fairly simple at the minute as it is something i have
picked up and put down many times. And i hope the structure is now correct, I
currently have one table with two forms both the forms have tabes. i am an
estate agent and wish to use one form to record my buyers and there needs and
another to record my sellers and there property details this is where i am at
just now, on one page of my sellers form i wish to be able to browse and
insert three photos of there property for reference and later to be used in
another way but i need to get past this hurdle before i can go any further.
Again:
I CANNOT SEE YOUR DATABASE.
I'm a Wysard of Information, that's my business name anyway - but I'm
not telepathic.
You have a table - or maybe two tables, that's not clear ("both forms
have tab[l]es"). I don't know anything about the structure of these
tables. I don't know what is in the tables which would allow you to
find an image.
You have some images in external files (that's good, in fact - storing
images in Access is VERY inefficient).
I would strongly suggest that - if you have only one table - that you
need some more. A Buyer is not a Property; a Buyer might or might not
also be a Seller; a property might have several prospective buyers; a
buyer might be interested in several properties. Mushing together
information about all these entities into one table will NOT give you
a good design.
I would suggest that you need at least the following tables:
Properties
PropertyID
Address
City
Postcode
AskingPrice
<other info about the property as an entity>
Pictures
PropertyID
PictureFile <name of a file containing one of the pictures of this
property>
Customers
CustomerID
LastName
FirstName
<other bio information, contact information>
Buyers
PropertyID < link to Properties >
CustomerID <who's interested in buying it>
<other fields about this customer's interest, ...>
Sellers
PropertyID
CustomerID <who's selling>
<other fields about this seller>
To display the image (or images) you would use a Form with an Image
control on it. In some suitable event, you would set the Picture
property of the control to the text string containing the path and
filename of your image.
John W. Vinson [MVP]