473,735 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Continuous Form and Images

I have read all the previous posts on this subject and just want to
make sure I have exhausted all possibilities before trashing this
concept...

I have an Access (2K) database with a SQL Server backend.
I have a table on SQL Server that has a column that is used to hold
small icons with datatype image.

This table links to others to form a recordsource that populates an
Access continuous form that displays the icons in a bound object frame.
Everything works fine. Each record shows the correct icon. The problem
is over a slow connection it is very, very slow to populate the
continuous form, even though the icons are very small (10 x 10 pixels.)

Ideally, I'd want to populate the image controls with icons stored
locally on each user's machine and linked, however, the vast amount of
postings on this subject seem to indicate that is not possible.

Is there a better (faster) way of doing what I am trying to do?
Any help is appreciated.
lq

Nov 13 '05 #1
3 3035
If you store the path to the image in a table, and providing that path is
identical on everybodies machine, I can't see why not

Public Function FindOldPhoto(fr m As Form, PhotoPath As String, ID As Long)

'HKEY_LOCAL_MAC HINE\Software\M icrosoft\ Shared Tools\Graphics
Filters\Import\ JPEG\Options ShowProgressDia log No

Dim Msg As String

If Nz(ID) = 0 Or Nz(PhotoPath) = "" Then
frm!Photo.Pictu re = ""
Exit Function
End If

If Dir(PhotoPath) = "" Then ' not found
Msg = "Photo: " & PhotoPath & vbCrLf
Msg = Msg & "is not found at the above location (or is misspelled)"
MsgBox Msg, vbInformation, "Missing Photo"
frm.Photo.Pictu re = ""
Exit Function
End If

frm!Photo.Pictu re = PhotoPath
Set ImageTypeSet = Nothing
Set MyDb = Nothing

End Function
PhotoPath will look something like "C:\My Documents\My Pictures\Icons\ Icon1"
ID is the main key of the record and used just to check that we are not on a
new record.
Frm is the form on which to display the Image
Photo is the Image Control

HTH

Phil

"laurenq uantrell" <la************ *@hotmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I have read all the previous posts on this subject and just want to
make sure I have exhausted all possibilities before trashing this
concept...

I have an Access (2K) database with a SQL Server backend.
I have a table on SQL Server that has a column that is used to hold
small icons with datatype image.

This table links to others to form a recordsource that populates an
Access continuous form that displays the icons in a bound object frame.
Everything works fine. Each record shows the correct icon. The problem
is over a slow connection it is very, very slow to populate the
continuous form, even though the icons are very small (10 x 10 pixels.)

Ideally, I'd want to populate the image controls with icons stored
locally on each user's machine and linked, however, the vast amount of
postings on this subject seem to indicate that is not possible.

Is there a better (faster) way of doing what I am trying to do?
Any help is appreciated.
lq

Nov 13 '05 #2
Phil,
Yes your method will populate a control on a single form, not a
continuous form however.
lq
Phil Stanton wrote:
If you store the path to the image in a table, and providing that path is identical on everybodies machine, I can't see why not

Public Function FindOldPhoto(fr m As Form, PhotoPath As String, ID As Long)
'HKEY_LOCAL_MAC HINE\Software\M icrosoft\ Shared Tools\Graphics
Filters\Import\ JPEG\Options ShowProgressDia log No

Dim Msg As String

If Nz(ID) = 0 Or Nz(PhotoPath) = "" Then
frm!Photo.Pictu re = ""
Exit Function
End If

If Dir(PhotoPath) = "" Then ' not found
Msg = "Photo: " & PhotoPath & vbCrLf
Msg = Msg & "is not found at the above location (or is misspelled)" MsgBox Msg, vbInformation, "Missing Photo"
frm.Photo.Pictu re = ""
Exit Function
End If

frm!Photo.Pictu re = PhotoPath
Set ImageTypeSet = Nothing
Set MyDb = Nothing

End Function
PhotoPath will look something like "C:\My Documents\My Pictures\Icons\ Icon1" ID is the main key of the record and used just to check that we are not on a new record.
Frm is the form on which to display the Image
Photo is the Image Control

HTH

Phil

"laurenq uantrell" <la************ *@hotmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I have read all the previous posts on this subject and just want to
make sure I have exhausted all possibilities before trashing this
concept...

I have an Access (2K) database with a SQL Server backend.
I have a table on SQL Server that has a column that is used to hold
small icons with datatype image.

This table links to others to form a recordsource that populates an
Access continuous form that displays the icons in a bound object frame. Everything works fine. Each record shows the correct icon. The problem is over a slow connection it is very, very slow to populate the
continuous form, even though the icons are very small (10 x 10 pixels.)
Ideally, I'd want to populate the image controls with icons stored
locally on each user's machine and linked, however, the vast amount of postings on this subject seem to indicate that is not possible.

Is there a better (faster) way of doing what I am trying to do?
Any help is appreciated.
lq


Nov 13 '05 #3
Whoops Sorry. Works OK for reports

Phil
"laurenq uantrell" <la************ *@hotmail.com> wrote in message
news:11******** **************@ c13g2000cwb.goo glegroups.com.. .
Phil,
Yes your method will populate a control on a single form, not a
continuous form however.
lq
Phil Stanton wrote:
If you store the path to the image in a table, and providing that

path is
identical on everybodies machine, I can't see why not

Public Function FindOldPhoto(fr m As Form, PhotoPath As String, ID As

Long)

'HKEY_LOCAL_MAC HINE\Software\M icrosoft\ Shared Tools\Graphics
Filters\Import\ JPEG\Options ShowProgressDia log No

Dim Msg As String

If Nz(ID) = 0 Or Nz(PhotoPath) = "" Then
frm!Photo.Pictu re = ""
Exit Function
End If

If Dir(PhotoPath) = "" Then ' not found
Msg = "Photo: " & PhotoPath & vbCrLf
Msg = Msg & "is not found at the above location (or is

misspelled)"
MsgBox Msg, vbInformation, "Missing Photo"
frm.Photo.Pictu re = ""
Exit Function
End If

frm!Photo.Pictu re = PhotoPath
Set ImageTypeSet = Nothing
Set MyDb = Nothing

End Function
PhotoPath will look something like "C:\My Documents\My

Pictures\Icons\ Icon1"
ID is the main key of the record and used just to check that we are

not on a
new record.
Frm is the form on which to display the Image
Photo is the Image Control

HTH

Phil

"laurenq uantrell" <la************ *@hotmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
>I have read all the previous posts on this subject and just want to
> make sure I have exhausted all possibilities before trashing this
> concept...
>
> I have an Access (2K) database with a SQL Server backend.
> I have a table on SQL Server that has a column that is used to hold
> small icons with datatype image.
>
> This table links to others to form a recordsource that populates an
> Access continuous form that displays the icons in a bound object frame. > Everything works fine. Each record shows the correct icon. The problem > is over a slow connection it is very, very slow to populate the
> continuous form, even though the icons are very small (10 x 10 pixels.) >
> Ideally, I'd want to populate the image controls with icons stored
> locally on each user's machine and linked, however, the vast amount of > postings on this subject seem to indicate that is not possible.
>
> Is there a better (faster) way of doing what I am trying to do?
> Any help is appreciated.
> lq
>

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
15851
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? This will give the effect of a bar moving up & down. BTW, all fields are locked so this form is View-Only & not editable. Thx & Best Rgds, Prakash.
3
9369
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where clause after users typed in one or several letters/digits. My problem is as follows Most of the time I need to display form in continuous format, that means the combo box will appear in each record. For example I have a form to let users view...
3
6315
by: Damian | last post by:
Hi. Is there a way to programatically populate a continuous form? I have an array of descriptions that I want to display in the continuous form and I have a textbox on the form called 'txtDescription' I can populate the text box using this code: Me.txtDescription.Value = myArray(1) Trouble is, I can't figure out how to get more than 1 row to display
4
3174
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. Tables: (abbreviated) TblDivision DivisionID
5
5357
by: Axel | last post by:
An Access 2000 question Hi is is possible to have (as a subform) a continous form with 0..n buttons which have different images in each row. (Personally I would have preferred a button array and assign images in code, much easier with a class module - but unfortunately Access does not support control arrays).
20
10825
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of either an option button plus two text fields or a checkbox plus two text fields Am wanting to save the user entries into an underlying table. Tag property for each option button, check box or text field has the value of the key
1
2778
by: tizmagik | last post by:
I have a combobox on a continuous form that has a recordsource that is set upon Form_Load event via VBA (based on initial form data and external form data entered). For data entry purposes the Combobox's value is saved to *another* field (text-field) in the appropriate table (this text-field is not visible in the Continuous Form); so the combobox is pretty much just for data-lookup purposes (so the user does not have to type anything). ...
3
3931
by: ApexData | last post by:
I am using a continuous form for display purposes. Above this form, a single record is displayed so that when the user presses my NewButton they can enter a NewRecord which gets added to the continuous form that displays below. Under the NewButton I have these lines of code: Me.AllowAdditions = True DoCmd.GoToRecord , , acNewRec
2
4447
by: Steve | last post by:
I have a continuous form showing Product Code and Product Name. Product Code is five digits and is sequential. I have a textbox in the form header. What is the code to scroll the continuous form so that as I type in the the first two or three numbers of the product code in the textbox, the first product code record appears at the top of the form. I would like the continuous form to act like a combox with auto expand. Thanks!
0
8959
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8784
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9462
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9326
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9199
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6747
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2187
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.