Access opens HTML file

rockyjr

Registered User.
Local time
Today, 10:14
Joined
Mar 12, 2008
Messages
100
Hi everybody,

I have a database of all the users (about 500) at our company. I have made a link that opens a HTML file with the floor plan when clicking on the user's location. Thats good.... but, what I would like is to make the location blink. Easier to find.

I have divided the floor plan with tables. (see screenshot)

I know that if I put <blink>.......<blink> the table blinks fine..... (you probably know the answer by now).

How do I go to make the proper table blink when I select it in the database?
 

Attachments

  • floorplan.jpg
    floorplan.jpg
    24 KB · Views: 145
You could make it blink by using the form's Timer event and the Timer Interval to however many seconds * 1000 you want it to blink. In the code, you'd set the fore/back color for whichever control you want to blink. I would make it subtle, as blinking can be annoying.
 
You could make it blink by using the form's Timer event and the Timer Interval to however many seconds * 1000 you want it to blink. In the code, you'd set the fore/back color for whichever control you want to blink. I would make it subtle, as blinking can be annoying.


Ok, thats sound good....

could I ask you to be a little bit more precise on how I could do this....

thank you,

Luc
 
Select "[Event Procedure]" in the form's OnTimer event, then click the "..." button next to it. In the procedure that comes up, put something like this:
Code:
Me.ControlName.Visible = Not Me.ControlName.Visible
That should give a blinking effect for whatever ControlName is. If you want to use colors instead of on/off, do something like this:
Code:
If Me.ControlName.ForeColor = RGB(200,0,0) Then
   Me.ControlName.ForeColor = RGB(150,0,0)
Else
   Me.ControlName.ForeColor = RGB(200,0,0)
End If
 
oh no no!! I probably didnt explain myself correctly!!!

I dont want the field in Access to blink or change color... I want the HTM file to open... (see screenshot floorplan at the top)... and desk of the user to blink or change color once it comes up.

This what I have till now...
when clicking on the button (Location of user) I have this in my code

Code:
Call Shell("c:\...\...\...\whatever.htm", 1)

Is there something in there that I could say.....
open whatever.htm file, search for user (or pc name in my case) pc-111wx.... and make it blink???


Here's 2 example of what the code looks like in the htm file (2 tables):

</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:200px;top:949px;width:161px;height:50px'><img
width=161 height=50 src="FloorPlan7_files/image001.gif" v:shapes="_x0000_s1150"></span><![endif]><img border="0" src="Images/7e%20étage%20Morguard.jpg" width="1055" height="1299"><!--[if gte vml 1]><v:rect
id="_x0000_s1028" alt="" href="%5bU%5dFloor%20Plan.mdb" style='position:absolute;
left:78.75pt;top:22.5pt;width:51.75pt;height:41.25pt;z-index:2' o:regroupid="1"
fillcolor="#ff9" strokeweight="1.5pt">
<v:textbox inset=".75pt,.75pt,.75pt,.75pt">
<table cellspacing="0" cellpadding="0" width="100%" height="100%" id="table1">
<tr>
<td align="center"><b><font size="2" face="Arial"><a name="7-015-05">
7-015-05</a><br>
</font><a title="Sybil Walker" href="Floor%20Plan.mdb">
<font size="2" face="Arial"><blink>PC-111WX</blink></font></a></b></td> ------ Name of PC here (PC-111WX)
</tr>
</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:2;left:104px;top:29px;width:75px;height:61px'><a
href="%5bU%5dFloor%20Plan.mdb"><img border=0 width=75 height=61
src="FloorPlan7_files/image002.gif" title="" v:shapes="_x0000_s1028"></a></span><![endif]><!--[if gte vml 1]><v:rect
id="_x0000_s1029" alt="" href="Floor%20Plan.mdb" style='position:absolute;
left:78.75pt;top:74.25pt;width:51.75pt;height:41.25pt;z-index:2' o:regroupid="1"
fillcolor="#ff9" strokeweight="1.5pt">
<v:textbox inset=".75pt,.75pt,.75pt,.75pt">
<table cellspacing="0" cellpadding="0" width="100%" height="100%" id="table2">
<tr>
<td align="center"><b><font size="2" face="Arial"><a name="7-015-04">
7-015-04</a><br>
</font><font size="2" face="Arial" color="#0000FF">
<a title="Mary Rubenstein" href="Floor%20Plan.mdb">PC-205WX</a></font></b></td> ---- Name of PC here (PC-205WX)
</tr>
</table>
 
Last edited:
Ah, well this is an HTML issue, not MS Access. :P

I don't think there's an easy way to make something blink in Internet Explorer, so I'd recommend just changing the color or other aspect of the PC you want highlighted. To accomplish this, you'll need to use Javascript or VBScript. I found an example for Javascript here. I modified that a little bit and saved the result in two HTML files you can have a look at in the zipped attachment in this post.
 

Attachments

Ah, well this is an HTML issue, not MS Access. :P

I don't think there's an easy way to make something blink in Internet Explorer, so I'd recommend just changing the color or other aspect of the PC you want highlighted. To accomplish this, you'll need to use Javascript or VBScript. I found an example for Javascript here. I modified that a little bit and saved the result in two HTML files you can have a look at in the zipped attachment in this post.


Holy crap!!

That's actually pretty good. I'll have fun trying to make this work.

And I thought it would be easy!!! :eek:

Well, thank you for the info.

Luc
 

Users who are viewing this thread

Back
Top Bottom