M
Mel
Hi all
Firstly I'm going to admit that I don't know that much about access I have a
feeling I am missing something really obvious so here it goes I am trying to
put stockpart pictures in an data base and I have been following Knowledge
Article 285820
It has been all going along fine I created the image table managed to get
them to appear on the Form however when I try to get them on the Data access
page using the instructions below it doesn't work. I think the problem is
that when I put the script in the macro it says to pass the parameter in but
I don't know enough about programming to figure out how to do that. Any help
would be really appreaciated the URL for the entire KB Article is at the end
Thanks
Mel
Duplicating the custom function in a data access page
1. Create the following new data access page that is based on the tblImage
table. Data Access Page: dapImage
-----------------------------
Title: Image Data Access Page
Image Control
---------------------------------
ID: ImageFrame
Text box
----------------------
ID: txtImageID
ControlSource: ImageID
Text box
---------------------------
ID: txtImageName
ControlSource: txtImageName
2. On the Tools menu, point to Macros, and then click Microsoft Script
Editor.
3. Add the following script to the Current event of the MSODSC in the HEAD
tag portion of the HTML document.
NOTE: You must pass in a parameter in order for the event to be triggered.
<SCRIPT language=vbscript event=Current(oEventInfo) for=MSODSC>
<!--
ImageFrame.src=txtImageName.value
-->
</SCRIPT>
**Code Taken from
http://support.microsoft.com/default.aspx?scid=kb;en-us;285820
**
Firstly I'm going to admit that I don't know that much about access I have a
feeling I am missing something really obvious so here it goes I am trying to
put stockpart pictures in an data base and I have been following Knowledge
Article 285820
It has been all going along fine I created the image table managed to get
them to appear on the Form however when I try to get them on the Data access
page using the instructions below it doesn't work. I think the problem is
that when I put the script in the macro it says to pass the parameter in but
I don't know enough about programming to figure out how to do that. Any help
would be really appreaciated the URL for the entire KB Article is at the end
Thanks
Mel
Duplicating the custom function in a data access page
1. Create the following new data access page that is based on the tblImage
table. Data Access Page: dapImage
-----------------------------
Title: Image Data Access Page
Image Control
---------------------------------
ID: ImageFrame
Text box
----------------------
ID: txtImageID
ControlSource: ImageID
Text box
---------------------------
ID: txtImageName
ControlSource: txtImageName
2. On the Tools menu, point to Macros, and then click Microsoft Script
Editor.
3. Add the following script to the Current event of the MSODSC in the HEAD
tag portion of the HTML document.
NOTE: You must pass in a parameter in order for the event to be triggered.
<SCRIPT language=vbscript event=Current(oEventInfo) for=MSODSC>
<!--
ImageFrame.src=txtImageName.value
-->
</SCRIPT>
**Code Taken from
http://support.microsoft.com/default.aspx?scid=kb;en-us;285820
**