473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

linking images to forms and getting in reports

sir as a computer operator i have to prepare the progress reports in ms access, as the strength is more we use admn (admission ) numbers as a student id, when i create the table and forms how can i insert the image of a student automatically by giving its path using the vba code. please suggest a very good answer in detail
May 6 '14 #1
3 3818
jimatqsi
1,271 Expert 1GB
swaymprakash,
Here is a lengthy Microsoft article on handling images.
http://office.microsoft.com/en-us/ac...010341505.aspx

That's a lot of information but you have said you want a detailed answer. I think reading and understanding that article will give you all you need to know. We're here to help with any problems you encounter.

Jim
May 6 '14 #2
jimatqsi
1,271 Expert 1GB
That is an article for Access 2010. You may want to look for a different version of the article if you are using some other Access version. Usually the information transfers well from version to version.

Jim
May 6 '14 #3
zmbd
5,501 Expert Mod 4TB
I highly advise against using the attachment field, or indeed, imbedding the graphics into the Database.
Instead I suggest that you store the pictures in a directory and then store a path to those images in the database.

If you will use the search bar above, you will find that there are dozens of threads that all ask basically the same question:
“How Do I get an image in/on-to my form/report?”

So for a little background and one method:
Use images in your Access forms, reports, and controls (v2003) I think it is very important that there is an understanding of the fundamental methods of storage methods in the older MDB files as there is some carry over into the V2007/2010 formats (maybe 2013 too; however, I know very little about that version). I Still do not advise using the OLE method as it has been known to cause bloat along with other issues within the older databases and doesn't transfer well.

Provided in this link is also a link for a video for V2010 Video: Add, reuse, and update images on forms and reports

Finally, the way I’ve done this for years is to create a custom function and use it as the “picture” value for a “linked” image. The function refers to another control on the form for the file name and then works out the relative path via the currentproject.path value. Perhaps I may post an example database using my function.

However, shortly after I had figured out how to do this on my own I came across the following information that does something similar in that it uses a custom function; however, still much different in the final implementation: How to display images from a folder in a form, a report, or a data access page Article ID: 285820 (v2003) where in the events are used for updating the images, whereas my does not use any events.

If there's enough interest, I might create that generic db using my people template and some clipart... wont take me but a moment or two as the rest of the code is already in production.

swayamprakash
Keep in mind, we are not here to create the project nor write the code for you. If you can post your work, we can certainly guide you in the right direction.
May 6 '14 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Timppa | last post by:
Hi, I have Access 2000 and now I'm converting .mdb database to .adp and Sql Server 2000. In old .mdb application I have a query which handles msysobjects table (reading forms and reports...
1
by: Nicolae Fieraru | last post by:
Hi All, I am working on an Access 2000 project where it was necessary to rename some fields in a table or to delete some fields and to recreate new ones. Now there are many forms and reports...
9
by: Alec | last post by:
Hi All, I am trying to print a report with an image in it. The image source is input via a text field on a form, and then the report is loaded. The problem is, the images are not of any...
2
by: misscrf | last post by:
I have a search form that is great. I have modified it in such a way, that when search results come up I can bring it back to a useful spot, say an entry form or a report. Here is my lemon (...
2
by: B. L via AccessMonster.com | last post by:
I have a Database with a Simple Switch board and multiple reports and forms. All of a sudden When i go and open up the database it says it can't find my forms or reports, but the tables and quiries...
5
by: chrisse_2 | last post by:
Hi, All the records in my database will contain at least one picture. At the moment all the images are part of the database as ole objects although the database is way to big and there is only...
0
by: Mark 123 | last post by:
For those of you that are using the Access 2007 Beta, can I ask, comparing Access 97: Is there still a 755 control limit for forms and reports?
1
by: mbongarala | last post by:
I've been hunting for some basic introduction on Forms and Reports..No matter how I search the sites, I've failed to find relevant information. Could anyone pls let me know of a book or a link I...
4
by: aflat362 | last post by:
If you look at this page on relational database design: http://r937.com/relational.html And scroll down to the "Many-to-Many Relationships" Section you will see a common database structure. ...
1
by: Bob Simon | last post by:
I'm trying to find what what forms and reports use a particular field, because I'm replacing it with another field. How can I search forms and reports for a field name?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.