473,401 Members | 2,146 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,401 software developers and data experts.

Access Database Access within code

I have an access database with an "item number" and a filespec for a JPG
with the image for the item and a filespec for a HTM document with the
description and specifications. I use a List Box and defined a DataSource
Link with postback to reference the access database, all works ok for
browsing the access file.

Now after the user selects the item in the list box I want to display the
image and htm document on the screen. I can set the ImageURL property of the
Image control to point to the image, but how can I access the data in the
list box or access file to determine the filespec of the image to display?
The List box has the correct file record, but only displays the item number
and not the filespec, although the access file has this info, this is by
design, so I think im gonna have to do some sort of lookup on the database
table, although I am not sure.

For the second part, is there a control where I can open and display the
contents of a HTM file to the screen, in a docked window, or just on the
screen, I dont want a floating window.

Thanks
Steve
Apr 11 '06 #1
2 1030
You can put a complete class object in the listbox too you know, not just
the file record id.

Jeff
"Stephen E. Weber" <sw@webersystems.com> wrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
I have an access database with an "item number" and a filespec for a JPG
with the image for the item and a filespec for a HTM document with the
description and specifications. I use a List Box and defined a DataSource
Link with postback to reference the access database, all works ok for
browsing the access file.

Now after the user selects the item in the list box I want to display the
image and htm document on the screen. I can set the ImageURL property of
the Image control to point to the image, but how can I access the data in
the list box or access file to determine the filespec of the image to
display? The List box has the correct file record, but only displays the
item number and not the filespec, although the access file has this info,
this is by design, so I think im gonna have to do some sort of lookup on
the database table, although I am not sure.

For the second part, is there a control where I can open and display the
contents of a HTM file to the screen, in a docked window, or just on the
screen, I dont want a floating window.

Thanks
Steve

Apr 11 '06 #2
thanks, I musta been napping!

all set now

steve


"Jeff Dillon" <je********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
You can put a complete class object in the listbox too you know, not just
the file record id.

Jeff
"Stephen E. Weber" <sw@webersystems.com> wrote in message
news:uB**************@TK2MSFTNGP03.phx.gbl...
I have an access database with an "item number" and a filespec for a JPG
with the image for the item and a filespec for a HTM document with the
description and specifications. I use a List Box and defined a DataSource
Link with postback to reference the access database, all works ok for
browsing the access file.

Now after the user selects the item in the list box I want to display the
image and htm document on the screen. I can set the ImageURL property of
the Image control to point to the image, but how can I access the data in
the list box or access file to determine the filespec of the image to
display? The List box has the correct file record, but only displays the
item number and not the filespec, although the access file has this info,
this is by design, so I think im gonna have to do some sort of lookup on
the database table, although I am not sure.

For the second part, is there a control where I can open and display the
contents of a HTM file to the screen, in a docked window, or just on the
screen, I dont want a floating window.

Thanks
Steve


Apr 12 '06 #3

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

Similar topics

2
by: Jay Moore | last post by:
Greetings, all! I have a project for work, and I'm not sure how to efficiently do what I need to do. I'm hoping someone out there can help. Project is this: I'm creating a web-based...
1
by: bailee220 | last post by:
I have included the following code to open an Access database form from within an exsisting Access database. But when I run the code, it appears that it opens the database because in windows...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
0
by: Mike Knight | last post by:
(I've also posted this problem on microsoft.public.excel.programming) I have a MS Access 2003 Database named "AS400 Fields.mdb". This database contains links to tables on an AS400. In MS...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
1
by: JoeBobHankey | last post by:
Background: - I'm running MSDE 2000 (not client tools, stored procedure capability, etc). This may change, but not in the first part of development. - My Access file is an Access 2002 project...
6
by: Bob Alston | last post by:
I am looking for others who have built systems to scan documents, index them and then make them accessible from an Access database. My environment is a nonprofit with about 20-25 case workers who...
16
by: JoeW | last post by:
I'm utilizing a database that I created within MS Access within a program I've created in VB.NET. I am using the VB front end to navigate the information, but want to be able to print a report,...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
7
by: thebarefootnation | last post by:
Hi, I have created an access db that I would like to secure. The database will exist on a shared drive and be used at a number of different locations hence the reason to secure the database. ...
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: 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
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,...
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...
0
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,...
0
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...

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.