A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I allow the user to select the record source of a form from multiple tables?



 
 
Thread Tools Display Modes
  #1  
Old July 20th, 2006, 10:49 PM posted to microsoft.public.access.forms
Don
external usenet poster
 
Posts: 40
Default How do I allow the user to select the record source of a form from multiple tables?

Hi,

My boss asked me to build a database of embedded images of houses. I
tried to put them all in one table then quickly realized that I would
exceed the size limitation of the database. I suggested links but he
wants embedded images.

So, I created a new database and table for each house and linked those
tables to a main database with a form for photo entries. However, I
would like the user to open the form and be prompted to select which
table of photos he or she would like to edit or add to using the one
form.

Any ideas would be greatly appreciated.

P.S. I would also like to create a single query that opens and asks the
user for which record source he or she would like. Hopefully, that will
allow me to build a report based on that query that will print the
photos for a specific house address entered by the user.

Thanks in advance for any help.

  #2  
Old July 21st, 2006, 03:53 AM posted to microsoft.public.access.forms
Larry Linson
external usenet poster
 
Posts: 3,112
Default How do I allow the user to select the record source of a form from multiple tables?

"Don" wrote in message
ups.com...
Hi,

My boss asked me to build a database of embedded images of houses. I
tried to put them all in one table then quickly realized that I would
exceed the size limitation of the database. I suggested links but he
wants embedded images.

So, I created a new database and table for each house and linked those
tables to a main database with a form for photo entries. However, I
would like the user to open the form and be prompted to select which
table of photos he or she would like to edit or add to using the one
form.


If you are storing the images in OLE objects, using the BLOB method
described in the referenced example may save you enough disk space to store
the pictures in the database. Separate tables for each house/picture is a
difficult way to "make them fit" and will come back to plague you as you
need to enhance/modify the DB.

The sample imaging databases at http://accdevel.tripod.com illustrate three
approaches to handling images in Access, and the download includes an
article discussing considerations in choosing an approach. Two of the
approaches do not use OLE Objects and, thus, avoid the database bloat, and
some other problems, associated with images in OLE Objects.

If you are printing the images in reports, to avoid memory leakage, you
should also see MVP Stephen Lebans' http://www.lebans.com/printfailures.htm.
PrintFailure.zip is an Access97 MDB containing a report that fails during
the Access formatting process prior to being spooled to the Printer Driver.
This MDB also contains code showing how to convert the contents of the Image
control to a Bitmap file prior to printing. This helps alleviate the "Out of
Memory" error that can popup when printing image intensive reports.

Larry Linson
Microsoft Access MVP


  #3  
Old July 21st, 2006, 03:02 PM posted to microsoft.public.access.forms
Don
external usenet poster
 
Posts: 40
Default How do I allow the user to select the record source of a form from multiple tables?

I think I might have a workaround.

I wanted the users to be able to connect their camera and drag the
photos to the form. This would embed them into a table. I now know that
this won't work because of size limitations.

So, instead I'm going to allow the user to connect their camera, press
a button that will move the camera files to a folder on mouse down,
open the insert dialog box on mouse up and then the user can choose any
image files links in one table. I only hope that this will also display
the image on the form.

Does this sound feasible?


Larry Linson wrote:
"Don" wrote in message
ups.com...
Hi,

My boss asked me to build a database of embedded images of houses. I
tried to put them all in one table then quickly realized that I would
exceed the size limitation of the database. I suggested links but he
wants embedded images.

So, I created a new database and table for each house and linked those
tables to a main database with a form for photo entries. However, I
would like the user to open the form and be prompted to select which
table of photos he or she would like to edit or add to using the one
form.


If you are storing the images in OLE objects, using the BLOB method
described in the referenced example may save you enough disk space to store
the pictures in the database. Separate tables for each house/picture is a
difficult way to "make them fit" and will come back to plague you as you
need to enhance/modify the DB.

The sample imaging databases at http://accdevel.tripod.com illustrate three
approaches to handling images in Access, and the download includes an
article discussing considerations in choosing an approach. Two of the
approaches do not use OLE Objects and, thus, avoid the database bloat, and
some other problems, associated with images in OLE Objects.

If you are printing the images in reports, to avoid memory leakage, you
should also see MVP Stephen Lebans' http://www.lebans.com/printfailures.htm.
PrintFailure.zip is an Access97 MDB containing a report that fails during
the Access formatting process prior to being spooled to the Printer Driver.
This MDB also contains code showing how to convert the contents of the Image
control to a Bitmap file prior to printing. This helps alleviate the "Out of
Memory" error that can popup when printing image intensive reports.

Larry Linson
Microsoft Access MVP


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.