Displaying Multiple Images With .SourceDoc

Dec 21, 2006

Hi,

I am new to Access forms and need some help. I did some research and figured out to display images in Acess Forms while getting the image path from a text field in the table. The images are suppose to change for each record. I have no problem displaying the first image a different image for each record but I am having problems displaying the second image. I have to 2 different fields for both image paths in the table. Here is the code:

Private Sub Form_Current()
On Error Resume Next
If Not IsNull(Me![Image1]) Then
Me![ImageFrame1].OLETypeAllowed = 1
Me![ImageFrame1].SourceDoc = Me![Image1]
Me![ImageFrame1].Action = 0
Else
Me![ImageFrame].SourceDoc = "C:Documents and SettingsAll UsersDocumentsMy PicturesSample Pictures
o-image.bmp"
Me![ImageFrame].Action = 0
End If

If Not IsNull(Me![Image2]) Then
Me![ImageFrame2].OLETypeAllowed = 1
Me![ImageFrame2].SourceDoc = Me![Image2]
Me![ImageFrame2].Action = 0
Else
Me![ImageFrame2].SourceDoc = "C:Documents and SettingsAll UsersDocumentsMy PicturesSample Pictures
o-image.bmp"
Me![ImageFrame2].Action = 0
End If
End Sub

The problem is that the function returns after 'Me![ImageFrame].Action = 0' and doesn't go to the part where I am checking if the 2nd image exists. If I take out 'Me![ImageFrame].Action = 0' then it doesn't display the first image and goes on the 2nd image and displays the 2nd image.
So that he bottom line is, with this code I can only display one image (either f1st or 2nd). Also, I tried using .Picture property instead of .SourceDoc but that doesn't work either. How can I change this so that I can display both images?

I really need to figure this out and will really appreicate any help. Thank you

View Replies


ADVERTISEMENT

Problem Displaying JPEG Images Stored In Access DB

Aug 12, 2005

It may seem a really silly question but is there any restrictions as to the file types that can be stored in an Access DB.

I havent used Access in a while, but have been asked by a friend to create a simple DB holding info about cars he is selling, he only wants to hold thumbnail images of the cars so I can either link or embed the pics! However if I try to link or embed a jpeg image nothing appears in the bound object frame except for the image title i.e. bmw325i.jpg if I do exactly the same with a bitmap image the pic is displayed???

The only other difference I have noticed is that in table view of the relevant table a bitmap appears as Bitmap Image whereas a JPEG appears as Package????

Any ideas

Thanks in advance

Simon

View 1 Replies View Related

Reports :: Adding Images To A Report - Only File Path Displaying

Oct 15, 2014

I have to add 2 company logos and a phone graphic to a report.

I can only seem to add one logo and if i try to copy and paste a graphic it just displays the file path.

View 3 Replies View Related

Reports :: Displaying Linked Images In Reports

Jul 9, 2013

Access 2007
Windows Vista
GOAL: Display linked images in image control, and to ultimately to export reports to pdf to share with family by email or to print
ERROR: There isnt enough free memory to update the display. Close unneeded programs and try again.

Ive created a DB for family heirlooms and as part of this Ive included images. Ive done this by storing the filename of the picture as text in the table tblPicture with a one to many relationship to the tblItem. This allows for many pictures of the item itself. I wanted to be able to show the most represent able photo of each item and added a checkbox titled primary picture to the tblPicture. I use this value in the querys to filter out all but one image per record.

I've added around 450 items to date, many of which have multiple pictures. I have started to run into some memory trouble now when running a few query driven reports.

I have stored only the file name in a text field in a table of the DB. I store all of my images in an images folder that is relative and constant to the DB location. I use code to display the images on the form with no problems (yet).

For displaying images on my reports,
1. I check to see if the record has an image path stored
2. If not I set the image control on the report to nothing
3. If there is a relative path stored I collect the DB path, and add the relative path and set the image control to that concatenated path

Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim strDBPath As String
Dim strRelativePath As String
Dim strPath As String

[code]...

Lastly, I have a few different pre-built reports that generate any number of records. I can select by the original owner of the item. If that person has only a few items to their name I have no problems.how can I set up my report to display my reports with images to avoid the lack of memory. Is using the image control and setting the picture property in code wrong?

View 1 Replies View Related

Multiple Images In A Form.

Sep 20, 2005

Could anyone help please.

I am a total novice with MS Access (2002) and coding so I am trying to learn by adapting the Northwind sample.

So far, one thing has completely stumped me and that is controlling images. I understand the benefits/pitfalls of storing images in the database and have concluded that it will suit me better to link my images via a text field.

What I am trying to do is add multiple images to the Northwind Employee Form. I have followed the help file and I can get additional images to display on the form, but I can not get the additional images to change for each record. The MS Access help only covers having a single image per record. I've concluded (right or wrong) that the Event Procedure is where I need to be experimenting, but I've had no luck so far.

Can anyone tell me if I can modify the Event Procedure in the Northwinds Employee sample to cope with multiple images, or is there another way?

Excuse me if any of my terminology is wrong... I really am new to this.

Thanks for any advice.

View 7 Replies View Related

Multiple Images Per Row In Database?

Jul 5, 2012

I am creating a database for vehicles in my town. I need to document multiple images per car. How can I do this? Ive tried Image and Bound Object frame in Design view but it seems that I can only add one picture per record...

View 1 Replies View Related

Display Multiple Images Per Record Or A Form / Subform

Sep 27, 2011

Is it possible to display, in either a form, multiple images that are dynamically linked? Can they all be displayed at once 1 to many images, either by using navigation bars or scrolling through a subform? The links would be stored in another table within the same database and not as hyperlinks.

Conceptually it would be like scrolling through multiple records on a subform with images rather than alphanumeric data in fields.

Would like to know if this is possible and if so in what versions of ACCESS.

Is there add-on software that would make this possible.

View 1 Replies View Related

Displaying Multiple Objects

Sep 4, 2006

Hey guys and gals, im in dire need of help!

I have a table with two fields. A name field where I have a bunch of unique numerical data and an object field, which contains unique pictures.

I am wondering if it is possible to create a form where I can display say ten pictures (I'm assuming as bound objects) and have each of them display a different object from a different record?

Or in other words can I have one bound object displaying a picture from one record, and a second bound object, displaying a picture from a second record, on the same form?

I have tried searching for everything and any little help would be much appreciated!!

Cheers
Robbie

View 1 Replies View Related

Displaying Multiple Records In Control

Aug 3, 2005

At the moment I have a field 'Author' which is displayed using a subform. The user can cycle through the many authors that are associated with each record in the main form. However, what I'd like to do is to display each record simultaneously in the same control, and with a little bit of playing around in VB get the form to work out how many Authors there are and display the names in a particular format. I.e.,

Bloggs, Jones & Smith
Hank & Mason

See what I mean? Does anyone know how I might refernce the records. So logically it would be:

lblAuthor = Record1 + "," + Record2 + " & " + Record3.

If that makes sense...Sorry if this is in the forums somewhere...

View 1 Replies View Related

Form Displaying Multiple Tables

Jan 27, 2006

I have a combo box with a list of names in, and a table for each of those people.

When one of these names is selected, i want the contents of the corresponding table to display in a form. Easy Enough.

But...how do I get these tables displaying in one form depending on which name is selected, to save me having 7 copies of the same form just with different sources. All the field names are the same.

One solution I thought of is to put all the data in one table, but would really rather keep it separate.

TIA

View 2 Replies View Related

Displaying Multiple Records On A Form

May 17, 2005

Anyone know how to display multiple records at the same time on a form?

View 1 Replies View Related

Multiple Value Fields Displaying In Another Form

Mar 4, 2013

By means of a multiple value checklist the Field: "Problem" can be selected (marked).The multiple value field information is stored in the table beginsituation in the form Beginsituation. This stored (selected fields only) information I want to be fetched from the table beginsituation and shown in the multiple value checklist in another form called Progress. The user can than change the selection via the multiple value checklist if the user wants this and this information will be stored in the table: "Progress". However I could not get the in the previous form (Beginsituation) selected values in the multiple value checklist.

View 3 Replies View Related

Forms :: Displaying Multiple Values In A Textbox?

Jul 30, 2013

I am designing a book collection database where each book can contain multiple authors. I used three tables; tblBooks, tblAuthors, tblBookAuthorJOIN. The tblBookAuthorJOIN allows me to create a subform with drop down combo boxes in the Books form linking multiple authors to each books indexed field. The Author table contains the usual FirstName, LastName, MiddleName fields. I would to be able to display the names of each author in the forms header but I am having difficulty.

For example a book may have two authors such as:

Authors table would contain values such as

Last Name: Grisham
First Name: John

Last Name: Twain
First Name: Mark

Textbox in header would display: John Grisham; Mark Twain

The authors would be displayed in the following format in the same order as listed in the subform datasheet.

Attached is a graphic of the form.

View 3 Replies View Related

Tables :: VLookup Displaying Multiple Cells

Jul 17, 2014

I am creating a staffing database and currently have two tables:

Table 1 - Staff - which contains staff information ie. First Name, Last Name, Other Names

Table 2 - Staff Work History - which displays the shifts worked by each staff member.

In Table 2 - I have "Staff Name" which is populated using VLOOKUP and searching for the Staff Name from Table 1 - First Name, Last Name, Other Name.

I want Table 2 column "Staff Name" to display all parts of the name - not just display then when on the dropdown when you select the staff person. Currently only the First Name is displayed once you have chosen the staff person.

View 2 Replies View Related

Forms :: Multiple Records From Query Not Displaying On Form

Nov 18, 2013

I have a form that a user will use to search records. Upon selecting a record, there are three buttons that allows the user to look at more detailed information. This information will be on the many side of the relationship. So I will have multiple values. The called form is just a popup form that I use for several other instances, like displaying memo fields from other tables.

The problem I am having is that only one record shows up at a time on the called form. I have read through the postings and have changed the properties for Default View, Filter on Load, Data Entry, etc. Nothing seems to change the outcome. I have run the query in SQL view and have no issues. It returns the correct records and multiple rows when expecting. Why they don't show up on the form. There are no errors, just the first record from the many side of the relationship shows up in the form. I would like all records to show up, just like when I run the query.

Code:

SELECT Capability
FROM Process_Meetings_Capabilities, Process_Meetings
WHERE Process_Meetings_Capabilities.Meeting_ID = Process_Meetings.Meeting_ID
AND Process_Meetings_Capabilities.Meeting_ID = 2;

Button Code

Code:
Private Sub Capabilities_btn_Click()
strSQL = "SELECT Capability AS Results"
strSQL = strSQL & " FROM Process_Meetings_Capabilities, Process_Meetings"
strSQL = strSQL & " WHERE Process_Meetings_Capabilities.Meeting_ID = Process_Meetings.Meeting_ID"
strSQL = strSQL & " AND Process_Meetings_Capabilities.Meeting_ID = " & Me!Meeting_cmbo.Column(0)

[Code] .....

View 6 Replies View Related

Forms :: Displaying One Field In Combobox In Multiple Columns

Jul 17, 2013

I have a multiple select combobox which shows up in many forms- SubCategories. The user can pick from a list of 154 SubCategories.

Everything is working properly however it is difficult for the user to scroll through the entire list.

My question: Is there a way to represent this ONE field in multiple columns in the combobox?

I know how to add columns for multiple fields to my combobox, but this is one field.

Maybe there is a better way to represent the data... a subform would have the same issue.

View 6 Replies View Related

Forms :: Multiple Column Combo Box - Displaying Values?

Mar 4, 2015

I have a multiple column combo box on my form, that is correctly populating. When I make a selection, it displays the result from the first column. Bound column seems correct, as my table is being populated correctly.

1 - Can I display the values from both columns after the selection has been made?

2 - If not, can I choose to display the second column (not the first) after the user has made a selection?

View 3 Replies View Related

Counting Results Of Multiple Queries And Displaying The The Reults On A Single Form

Apr 17, 2007

Im making a database about past bid results. In one table i have a list of bidders and which place they came in (along with some other information). I have 20 positions (1st place, second place and so on...), so i made 20 queries that search through the table for my company's name so we can see how many times we came in first, second, third and so on. Now i would like to bring the number of records in each query to a single form. I tried making another query to using the count feature on the other 20 queries but it keeps returning 0 as the number of results per query. But when i open each query up there are obvisouly more that 0 results in each. Is there a way i can bring up the number of results per query all on one form?

Thank you

Dan

View 7 Replies View Related

Forms :: Change ComboBox Drop Down Menu From Displaying Checkboxes For Multiple Values

Oct 14, 2013

I have an issue with a couple of my combo boxes. When in form mode the drop down menu displays a list of options (taken from my source table), this is fine, but the problem is that it allows the user to select more than one of the options in the form of checkboxes. This is not what I intended.

I've attached to pictures to demonstrate the problem. The first is ComboBoxQuery (the one with the problem) and the second is ComboBoxQueryWorkign (the one without a problem).

I'm not sure why this is happening and I've tried comparing all the properties of both these combo boxes and changing some of them to see if I can eliminate the problem without any joy.

I use a very standard SELECT statement to pull the data for the combo box:

SELECT CountryID, CountryName FROM tblCountryInfo ORDER By CountryName

View 7 Replies View Related

Images

Apr 16, 2008

I have a table that is linked to SQL server
In this table I have a field that has thepath to an image
C:TempImagexxx.pdf
What I want to do is have a dropdown that the user can select a Notice Number and then have its image pop up in the form.

I have a Notice Number field and a Path field.

Do I create a Query to query the two fields.
Create a Drop Down box and assign the query to the drop down box.

But then how do I get the image to popup...and in what and unbound object frame?

Any help would be apprecaited

THanks

View 3 Replies View Related

Images & MS Word

Apr 13, 2007

To queries here:

Database is the MS Contacts Template with minor adjustments.

1. Trying to insert a link to an image using a bound OLE object in my form. Now I've got it top work. However, the link appears normal size in the centre of the object box. Problem is when I resize the oject box so that llink text just fits fine. The text resizes with the box and you need a microscope to read it.

2. I want to be able to cerate merged letter but I cant select Tools>Merge it with MS word fro some reason (i've aslo tried with with DB's we use in work with same problem) but publish with Word is available.:confused:

I am by no means an expert with Access so please, please post replies in lamens terms.

Thanks,

Marc

View 2 Replies View Related

Images In Cells...

Feb 19, 2008

Hello,

I did a cursory search of the forum and didn't find anything (probably more my search than the content). I also think I know the answer to this, but I want to clear it up once and for all.

Is it true that I cannot insert an image into an Access Table in a way that it treats the image like data (e.g., it comes up on reports as entered).

If so, and I suspect it is so, what would be the best way to associate a row with a certain image in Access? Here's what I'm hoping to do: I have a list of projects and all of them have a status. Right now the "status" column includes the text "Green," "Yellow," or "Red." I would rather have this text display as green, yellow, or red color rather than text. Is this possible?

Thank you!! :D

View 4 Replies View Related

Images + Tables

Jan 11, 2006

Hello there

I got a questions and maybe you prof. can help me out

I got a table with all employees in it

Example

John Doil
Mina Lizo
Sholly Nopi

etc.

Its has 250 records.

I also got all the pictues of them
But the pictures have the following name

John_Doil_.jpg
Mina_Lizo_.jpg
Sholly_Nopi_.jpg

Also i still have pictues from ex employees.

I have all the filepaths of the jpg in a table.

Is there a way to link the 2 tables based on first name
Or make a extra cell and in a query take the names for the _ that takes out and put it in that cell.

Sorry for my bad english if you got question plz ask

View 9 Replies View Related

Buttons And Images

Mar 11, 2005

I need help combining both text and images on an Access button. Does anyone know how to do this? Bryant

View 2 Replies View Related

Images Not Showing Up

Mar 23, 2005

Hi there,

I have a "minor" problem which most of you will probably have a laugh about :eek:


I have set up my Table / Form to have an image for each "item".

Now...when I add the image, it does not show up as the thumbnail JPG. It only appears as the image name.

So instead of seeing a picture, I see 1.jopg (example)

Can anyone help me with a correct hint?

Much appreciated

Chris

View 5 Replies View Related

Record Images

Jul 20, 2005

Before you ask, yes I did search, but no it didn't help...

OK, database is storing members, so each member record needs to have a picture of them. I've made a field in the members table for the path of the image. I've followed the example here - http://www.utteraccess.com/candace/candace/picture/picture.zip , but I keep getting the error 'You can't reference a property or method for a control unless the control has the focus.' When I've tried to set the focus to it I get the error '# can't move the focus to the control MemberImage.'

What am I doing wrong?

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved