473,387 Members | 1,722 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,387 software developers and data experts.

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 3005
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(frm As Form, PhotoPath As String, ID As Long)

'HKEY_LOCAL_MACHINE\Software\Microsoft\ Shared Tools\Graphics
Filters\Import\JPEG\Options ShowProgressDialog No

Dim Msg As String

If Nz(ID) = 0 Or Nz(PhotoPath) = "" Then
frm!Photo.Picture = ""
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.Picture = ""
Exit Function
End If

frm!Photo.Picture = 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.googlegr oups.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(frm As Form, PhotoPath As String, ID As Long)
'HKEY_LOCAL_MACHINE\Software\Microsoft\ Shared Tools\Graphics
Filters\Import\JPEG\Options ShowProgressDialog No

Dim Msg As String

If Nz(ID) = 0 Or Nz(PhotoPath) = "" Then
frm!Photo.Picture = ""
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.Picture = ""
Exit Function
End If

frm!Photo.Picture = 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.googlegr oups.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.googlegr oups.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(frm As Form, PhotoPath As String, ID As

Long)

'HKEY_LOCAL_MACHINE\Software\Microsoft\ Shared Tools\Graphics
Filters\Import\JPEG\Options ShowProgressDialog No

Dim Msg As String

If Nz(ID) = 0 Or Nz(PhotoPath) = "" Then
frm!Photo.Picture = ""
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.Picture = ""
Exit Function
End If

frm!Photo.Picture = 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.googlegr oups.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
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 ? ...
3
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...
3
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...
4
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. ...
5
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...
20
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...
1
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...
3
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...
2
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
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...

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.