473,698 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Would this be easy to do??

I am not an access expert, could anyone tell me if the following would be
easy to do??

I receive emails from a specific email address, that advise me if a specific
piece of equipment my company maintains has failed. I also then get emails
telling me when this equipment is back working again.

All of this information is held within the body of the email.

I would like to make this more graphical instead of filtering through
emails. Since it is the same piece of equipment but at numerous locations,
I would like to create an access form with buttons for all of these
locations on, but for the colour of these buttons to change dependent upon
its status. e.g an email arrives saying equipment at location A has
failed - the button goes red - email arrives saing equipment at location A
is now working again, button goes green.

Is there an easy wav to do this?

many thanks for an advice you can give

Rick

--
visit www.east4adventure.org.uk/snorkel
Mar 14 '08 #1
4 1784
Only way I can imagine doing this is with coding, VBA. I am guessing
you use Outlook for email. You would need to establish a connection
between Outlook and Access. Maybe you can make a rule in the Outlook
rules wizard that sends those emails to a folder, and have the VBA
code trigger anytime an email goes to that folder. They are probably
a couple of ways to do this, but I don't see anything that doesn't
involve coding such as VBA. Hence, not easy to do.

On Mar 14, 10:59 am, "Rick Stevens" <rick-stev...@ntlworl d.comwrote:
I am not an access expert, could anyone tell me if the following would be
easy to do??

I receive emails from a specific email address, that advise me if a specific
piece of equipment my company maintains has failed. I also then get emails
telling me when this equipment is back working again.

All of this information is held within the body of the email.

I would like to make this more graphical instead of filtering through
emails. Since it is the same piece of equipment but at numerous locations,
I would like to create an access form with buttons for all of these
locations on, but for the colour of these buttons to change dependent upon
its status. e.g an email arrives saying equipment at location A has
failed - the button goes red - email arrives saing equipment at location A
is now working again, button goes green.

Is there an easy wav to do this?

many thanks for an advice you can give

Rick

--
visitwww.east4a dventure.org.uk/snorkel
Mar 14 '08 #2
Thanks for that Julio , I thought it didnt sound like beginners stuff.

Anyone have any ideas how this scenario could be easily accomplished? It
doesnt have to be in access, could be a webpage or anything

cheers

Rick

--
visit www.east4adventure.org.uk/snorkel
"Julio" <sd******@gmail .comwrote in message
news:95******** *************** ***********@m44 g2000hsc.google groups.com...
Only way I can imagine doing this is with coding, VBA. I am guessing
you use Outlook for email. You would need to establish a connection
between Outlook and Access. Maybe you can make a rule in the Outlook
rules wizard that sends those emails to a folder, and have the VBA
code trigger anytime an email goes to that folder. They are probably
a couple of ways to do this, but I don't see anything that doesn't
involve coding such as VBA. Hence, not easy to do.

On Mar 14, 10:59 am, "Rick Stevens" <rick-stev...@ntlworl d.comwrote:
>I am not an access expert, could anyone tell me if the following would be
easy to do??

I receive emails from a specific email address, that advise me if a
specific
piece of equipment my company maintains has failed. I also then get
emails
telling me when this equipment is back working again.

All of this information is held within the body of the email.

I would like to make this more graphical instead of filtering through
emails. Since it is the same piece of equipment but at numerous
locations,
I would like to create an access form with buttons for all of these
locations on, but for the colour of these buttons to change dependent
upon
its status. e.g an email arrives saying equipment at location A has
failed - the button goes red - email arrives saing equipment at location
A
is now working again, button goes green.

Is there an easy wav to do this?

many thanks for an advice you can give

Rick

--
visitwww.east4 adventure.org.u k/snorkel

Mar 14 '08 #3
"Rick Stevens" <ri**********@n tlworld.comwrot e in message
news:Ip******** *********@newsf e3-win.ntli.net...
I am not an access expert, could anyone tell me if the following would be
easy to do??

I receive emails from a specific email address, that advise me if a
specific
piece of equipment my company maintains has failed. I also then get
emails
telling me when this equipment is back working again.

All of this information is held within the body of the email.

I would like to make this more graphical instead of filtering through
emails. Since it is the same piece of equipment but at numerous
locations,
I would like to create an access form with buttons for all of these
locations on, but for the colour of these buttons to change dependent upon
its status. e.g an email arrives saying equipment at location A has
failed - the button goes red - email arrives saing equipment at location A
is now working again, button goes green.

Is there an easy wav to do this?

many thanks for an advice you can give
There is plenty of info on connecting Access to email programs and
processing messages. It depends on what program you use - if it's webmail
then I wouldn't have a clue but else you can definitely parse emails with
some code. It should be fairly straightforward if the data is consistent
and the code to change the buttons is trivial.
It would be worth thinking of what fields you want to capture, then you
might expand the program with a few useful reports e.g failure over time
etc.
Mar 14 '08 #4
DFS
Rick Stevens wrote:
I am not an access expert, could anyone tell me if the following
would be easy to do??

I receive emails from a specific email address, that advise me if a
specific piece of equipment my company maintains has failed. I also
then get emails telling me when this equipment is back working again.

All of this information is held within the body of the email.

I would like to make this more graphical instead of filtering through
emails. Since it is the same piece of equipment but at numerous
locations, I would like to create an access form with buttons for all
of these locations on, but for the colour of these buttons to change
dependent upon its status. e.g an email arrives saying equipment at
location A has failed - the button goes red - email arrives saing
equipment at
location A is now working again, button goes green.

Is there an easy wav to do this?
Won't be easy if you're inexperienced with Access/Outlook/VBA. But
straightforward enough.

First, it would be nice if the email had a standardized subject line, such
as "Equipment Status: <Location# or Location Name>:<Equipmen t Status>". If
not you'll have a much harder time parsing the data.

Depending on how many locations you have, a button for each location on a
form may be a lot of trouble to write and maintain. So you might just use a
database table with location name, equipment status, status change date,
comments, etc. Then display this data in a datasheet view.

Loc1 Operational 3/12/08 12:23:35pm
Loc2 Operational 3/13/08 1:21:22pm
Loc3 Failed 3/14/08 19:03:03pm
Loc4 Operational 3/10/08 01:01:03am
Now you just need to write some code to read from an Outlook inbox, look for
items with "Equipment Status" as the first 16 characters of the Subject
line, get the location and status right from the subject, and update your
table and refresh the screen.

In your code module, set a Reference to the Microsoft Outlook 11 Object
Library (that's for Outlook 2003).

=============== =============== =============== ====
Attach code like this to a form

Public Sub checkEquipStatu s()

'OUTLOOK OBJECTS AND VARS
Dim olApp As New Outlook.Applica tion
Dim olMailbox As Object, olSourceFolder As Object
Dim olItems As Outlook.Items
Dim subjectStr As String, subjectLen As Byte
Dim i As Integer, j As Integer, k As Integer
Dim location As String, equipStatus As String

'REFERENCES TO OUTLOOK FOLDERS
Set olMailbox = olApp.GetNamesp ace("MAPI").Fol ders("Mailbox - Stevens,
Rick")
Set olSourceFolder = olMailbox.Folde rs("Inbox")

'ITERATE FOLDER CONTENTS
Set olItems = olSourceFolder. Items
k = olItems.Count
For j = 1 To k

'ENSURE OUTLOOK EMAIL SUBJECT MATCHES ENTRY FROM TABLE
If Left(olItems(j) .Subject, 16) <"Equipment Status" Then GoTo
nextEmail

'PARSE LOCATION AND STATUS FROM EMAIL SUBJECT LINE
'example: Equipment Status: Atlanta - Failed
'NOTE: you'll have to figure this out how to use Mid and InStr
location = Mid(olItems(j). Subject,19,7)
equipStatus = Mid(olItems(j). Subject,29,6)

'UPDATE YOUR TABLE
db.Execute("UPD ATE Table SET Status = '" & equipStatus & "' WHERE
Location = '" & location & "';")

'NEXT EMAIL IN INBOX
nextEmail:
Next j
'CLOSE OUTLOOK OBJECTS
Set olItems = Nothing
Set olMailbox = Nothing
Set olSourceFolder = Nothing

'IN A Text FIELD ON THE FORM YOU CAN RECORD THE LAST TIME YOU CHECKED EMAILS
Me.txtStatusUpd ate = Now()

'UPDATE THE SCREEN TO SHOW LATEST STATUS
Me.datasheetNam e.Requery

End Sub
=============== =============== =============== ====

You could leave the Access system running, with your status form that has
settings in the TimerInterval and OnTimer event, and have it run that code
to check for emails every 5, 10, 20, 30 minutes, etc. Whatever time period
you need.

Set the TimerInterval = 1000x the number of seconds, so a 5 minute interval
= 300000
The pseudocode for the OnTimer event might look like this:

If Now - Me.txtStatusUpd ate 15 minutes Then
call checkEquipStatu s
End If

Enjoy!

Mar 15 '08 #5

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

Similar topics

24
2525
by: Charif Lakchiri | last post by:
Okay, here's what I know so far about Python: It's an object-oriented scripting language, supported on many platforms. Now here are my questions: It is easy to learn? Does it support GUI programming? Does it support server-side programming, say for web apps? Does it have extensions and libraries, say for DB connectivity, serial com or network programming...? Can it be used for administrative tasks, say as perl...?
39
2802
by: Antoon Pardon | last post by:
I was wondering how people would feel if the cmp function and the __cmp__ method would be a bit more generalised. The problem now is that the cmp protocol has no way to indicate two objects are incomparable, they are not equal but neither is one less or greater than the other. So I thought that either cmp could return None in this case or throw a specific exception. People writing a __cmp__ method could do the same.
4
3176
by: lkrubner | last post by:
I'd like to write a PHP script to be used from the command line on a Unix machine. I'd like for the script to put together a string, turn it into a web page, print it, then return control the command line. Obviously it is quite easy to make a string that is valid HTML and send it to the printer. The tough part is making look like a web page. In particular, image tags should print out as images, not image tags. Does anyone have an idea...
19
2394
by: Mountain | last post by:
I would like opinions on whether this solution could be important and whether anyone knows if it is already solved. (I would also like to know if anyone thinks it cannot be solved.) First, we start with a general tree (any of the trees that my data structures book calls rooted trees or unordered trees). Then we are given two specific nodes (Na and Nb) that belong to that tree. We would like to know if the second node (Nb) is an...
7
2419
by: Brave | last post by:
I am hoping for a code example of how to do this, and hopefully it will help me to see an easy way to code what seems to be a huge monster. I need to create a form that has two pulldown menues (field names Option1 and Option2). Each will house a list of the 50 U.S. States. Users would then be able to choose two states, and get a listing for a courier used for pickup\deliveries (exp: My order is in Ohio, but I need it delivered to Maine....
111
5556
by: Enteng | last post by:
Hi I'm thinking about learning C as my first programming language. Would you recommend it? Also how do you suggest that I learn it?What books/tutorials should I read for someone like me? Thanks in advance! -entengk
5
1520
by: Ronald S. Cook | last post by:
I need ideas on how to best design a Windows form for my particular situation. On a cattle feeding yard there will be between about 300 and 600 pens. On my "Pen Feeding Sequence" form, I want the user to be able to setup and maintain the order in which the pens should be fed (ultimately in the Pen table is a column named Sequence that gets an interger value). So on the form...
4
1113
by: Sanoski | last post by:
I'm pretty new to programming. I've just been studying a few weeks off and on. I know a little, and I'm learning as I go. Programming is so much fun! I really wish I would have gotten into it years ago, but here's my question. I have a longterm project in mind, and I wont to know if it's feasible and how difficult it will be. There's an XML feed for my school that some other class designed. It's just a simple idea that lists all classes,...
7
2547
by: adfghergaer | last post by:
First of all, I'm not a programmer. I'm here because I had an idea for a software program that my employer may hire someone to design, and I'm wondering what kind of investment it would take to hire someone to design it. (Thousands of dollars? Tens of thousands? Hundreds of thousands?) We want to create a software program that Home Inspectors would use to create their inspection reports. The concept of the program is somewhat similar to Turbo...
0
8603
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
9157
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...
1
8895
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
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
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
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.