home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

MS Access help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2167
Discussions: 200,972, Posts: 2,379,772, Members: 246,336
Old August 24th, 2005, 01:40 AM   Digg it!   #1 (permalink)
Ultimate Member
 
usslindstrom's Avatar
 
Join Date: Sep 2003
Location: From my house
Posts: 1,261
MS Access help

I have a question about throwing together an MS Access database. I`ve used Access on a regular basis, and know a little about it... But I`m having trouble trying to figure out if the database I would like to create is even possible...

I need to set up a schedule of inspections that are required every 28 days. So, I would like to put an initial date in a block, and let the computer calculate every 28 days and plot it on a calendar. So for instance, if an inspection is due today, I could pull up a calendar and see the next time it`s due... Plus, I could pull up persay next June and see what day it was going to fall on.

If this is at all possible in MS access, I need to throw in another equation to the mix. We have the option to pull an inspection 3 days early, or complete it 3 days late if the requirement deems. So I would need to put an equation in to plot those days as well.

It`s kinda hard to explain, but I drew a small example to help... This an example of what I would like to see (minus the arrows) on any month that I decided to look at...

If MS Access is the wrong program to try this in, please give me your insite - I need to complete this in a timely manner for a project at work.

Thanks in advance.
Attached Thumbnails
ms-access-help-access-proposal.gif  
__________________
And thus it was spoken by the mighty Uss. And it was so.
usslindstrom is offline   Reply With Quote
Old August 24th, 2005, 01:47 AM     #2 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,552
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
How I read it, Access is the wrong thing to do this in....

You could simply do this in javascript and have it run as an HTML file. (No webserver necessary)
You could also write this in any language under the sun. You do not need and sort of Database backend as you would provide it with a seed date and it would do the rest for any month you picked in any year.

How it would work.......
Seed date = Known date of inspection
Month to look at
Take the difference in days from the first of that month and the seed date
DateDiff(d, seed Date, 1st of month 200X)
take the resulting figure mod 28
Add 28 - (DateDiff(days, seed Date, 1st of month 200X) % 28) to the first of the month to get the day you are looking for.
Color three days before and three days after.

That math may be slightly off as I am damn tired at the moment But this is the general flow of the program. It is pretty easy. If you need any more help just let me know. Most languages have a decent date function, and if not it is pretty easy to write your own as every language has a UTC function.

Jkrohn
jkrohn is offline   Reply With Quote
Old August 24th, 2005, 02:06 AM     #3 (permalink)
Ultimate Member
 
usslindstrom's Avatar
 
Join Date: Sep 2003
Location: From my house
Posts: 1,261
Holy crap! Thanks for the quick response!

And - You`re official WAY over my head. I did some programming with the orignal BASIC on an old Apple II when I was a kid, but nothing more than making the computer choose random numbers and putting together a choose-your-own adventure game. - Nothing too in depth.

If it wasn`t too much trouble, could somebody walk me through the process on this task? - As long as I`m not bothering anybody.
usslindstrom is offline   Reply With Quote
Old August 24th, 2005, 10:13 AM     #4 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,242
Send a message via AIM to Rootstonian
Anything like this help?
Attached Thumbnails
ms-access-help-excel1.jpg  
Rootstonian is offline   Reply With Quote
Old August 24th, 2005, 07:29 PM     #5 (permalink)
Ultimate Member
 
usslindstrom's Avatar
 
Join Date: Sep 2003
Location: From my house
Posts: 1,261
Actually, yes. For what I need. - But I already know how to do those kind of formulas from within Excel....

What I'm looking for, is for my millions of boss' that really don't know anything about computers - so they can graphically see the inspection cycle on a calendar in front of them.

Thanks for the suggestion though.
usslindstrom is offline   Reply With Quote
Old August 25th, 2005, 08:22 AM     #6 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,242
Send a message via AIM to Rootstonian
Ok, do you use Microsoft Outlook for e-mail? Use it's calendar feature to setup a recurring event; you can set it for 28 days. Not sure how to do the +/- 3 days though.
Rootstonian is offline   Reply With Quote
Old August 30th, 2005, 09:41 PM     #7 (permalink)
Ultimate Member
 
usslindstrom's Avatar
 
Join Date: Sep 2003
Location: From my house
Posts: 1,261
Yeah, I know about the Outlook Scheduling, but it`s pretty much imperative that I set the + / - 3 days also. Perferably color coded. Plus, I would need to have the option of changing the inspection base date on the fly, as we sometimes do the work as operations require.
usslindstrom is offline   Reply With Quote
Old August 31st, 2005, 07:12 PM     #8 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,242
Send a message via AIM to Rootstonian
Well, I'm out

Access is NOT my strong suit. Hopefully someone will stop in who is!
Rootstonian is offline   Reply With Quote
Old August 31st, 2005, 07:28 PM     #9 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
How exactly do you want your bosses to view this?

Seems to me like it might be best done through scripting (PHP perhaps) on a web server on the companys local network. That way you can throw a bookmark on their computers for them to view it. As far as recording the dates, you could do something as simple as what jkrohn has laid out above, or reading and outputting to a text file, or a mysql database installed on the same server would work pretty well.

Probably a better solution...but I dunno.

Perhaps a VisualBasic macro in an excel spreadsheet?
Not exactly sure how you could generate the calendars, but in generally, you could create a calendar out of Excel cells (on a different worksheet than the input stuff), and then have a little Macro button, color in the dates that you generate with whatever formula you have.

Last edited by VHockey86 : August 31st, 2005 at 07:37 PM.
VHockey86 is offline   Reply With Quote
Old September 1st, 2005, 02:12 AM     #10 (permalink)
Ultimate Member
 
usslindstrom's Avatar
 
Join Date: Sep 2003
Location: From my house
Posts: 1,261
Yeah, basically anything is on the table for this idea. I was just a little familiar with access, but didn`t know if it was possible with that program...

If writing it in a programing language best suits this, then by all means I`m game... But I`m not to edumacated in the area of programming, and would need some guidance if it`s not too much trouble.

Here is kinda` a draft of what I would like the thing to do. I would like to have the Boss man just push a button on whatever month he/she wanted to look at, and all they would see is what inspections fell due in that particular one. Color coded if possible.
Attached Thumbnails
ms-access-help-sample-calendar-proposal.gif  
usslindstrom is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access denied by access control list pjaj Networking and Internet 22 November 29th, 2008 05:44 PM
Access Denied: Unable to access old profile wineglass Security and Privacy Issues 10 February 27th, 2005 10:30 PM
access 2k3 - data access page search function csamuels Webmastering and Programming 2 January 11th, 2005 03:14 PM
Open and print Access Database without access? Winos2Mac Applications and Operating Systems 3 September 17th, 2004 09:50 PM
Running access 97 macro through access 2000 db Jshipley45 Webmastering and Programming 2 October 3rd, 2003 01:53 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Charges against non-tippers dropped.. (6)
Is It Just Me? (3055)
The disrespect of Obama by Russian .. (48)
Delete an OS (16)
Nvidia GTX 260 problem (8)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
windows vista security holes (17)
Regular Build (11)
windows 7 problem (7)
Internet Lost (5)
Point and Shoot Camera Suggestions. (6)
Print spooler problem (16)
Recent Discussions
Delete an OS (16)
Multiple Restarts Required at Boot (4)
cell phone won't work (0)
Nvidia GTX 260 problem (8)
Is the PSU I received dead? (15)
Can't open Word (12)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (37)
Steam ID's, Gamertags etc... (4)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)


All times are GMT -4. The time now is 10:45 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28