date increasing

%3CLINGO-SUB%20id%3D%22lingo-sub-2501684%22%20slang%3D%22en-US%22%3Edate%20increasing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2501684%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20color%3D%22%23333333%22%3EHello%20all%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23333333%22%3EI%20have%20an%20excel%20sheet%20containing%20information%20for%20many%20machines%20that%20needs%20maintenance%2C%20each%20machine%20has%20a%20starting%20date%20of%20maintenance%20and%20the%20maintenance%20will%20be%20done%20repetitively%20in%20a%20specific%20frequency%20(%20some%20are%20daily%2C%20weekly%2C%20monthly%2C%20semi%20annual%20or%20annual%20and%20many%20frequencies)%2C%20I%20need%20to%20put%20the%20date%20of%20today%20or%20tomorrow%20or%20any%20coming%20date%20to%20see%20what%20are%20the%20machines%20that%20need%20maintenance%20at%20that%20date%20and%20the%20information%20of%20each%20machine%3C%2FFONT%3E%3C%2FP%3E%3CP%3Ei%20need%20to%20link%20excel%20file%20to%20access%20and%20show%20the%20results%20in%20access%3CBR%20%2F%3E%3CFONT%20color%3D%22%23333333%22%3EI%20will%20link%20the%20file%2C%20the%20task%20schedule%20is%20the%20frequency%20(NM%3A1%20is%20monthly....)%20the%20task%20last%20date%20done%20is%20the%20reference%20date%20of%20each%20machine%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23333333%22%3Ehow%20can%20I%20do%20it%20%3F%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23333333%22%3Ethe%20dates%20are%20in%202012%2C%20but%20I%20need%20to%20increase%20dates%20to%20reach%20today%20as%20in%202021%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2501684%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EApp%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2502424%22%20slang%3D%22en-US%22%3ERe%3A%20date%20increasing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2502424%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1091801%22%20target%3D%22_blank%22%3E%40mok1995%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20two%20parts%20to%20the%20question.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20filtering%20on%20a%20specific%20date%20to%20see%20which%20machines%20are%20due%20for%20maintenance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESecond%2C%20advancing%20the%20dates%20to%20the%20present.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20Access%2C%20you%20can%20link%20the%20excel%20worksheet%20and%20use%20it%20similarly%20to%20how%20you%20would%20a%20native%20table%2C%20albeit%20with%20some%20limitations.%20Excel%2C%20for%20example%2C%20can't%20be%20updated%20directly%20from%20Access%2C%20so%20any%20new%20data%20entries%20or%20updates%20will%20need%20to%20be%20done%20on%20the%20Excel%20side.%20You%20could%20resort%20to%20VBA%20to%20use%20recordsets%20to%20update%20the%20workbook%2C%20I%20think%2C%20although%20that's%20probably%20more%20involved%20than%20you%20want.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWrite%20a%20query%20in%20Access%2C%20using%20this%20linked%20Excel%20worksheet%2C%20and%20apply%20a%20criteria%20to%20the%20field%20containing%20the%20maintenance%20date%20you%20want%20to%20filter%20on.%20In%20essence%20it%20would%20be%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ESELECT%20*%26nbsp%3B%0A%0AFROM%20YourLinkedExcelWorkSheet%0A%0AWHERE%20MaintenanceDate%20%3D%20Today()%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ENoting%2C%20however%2C%20that%20you%20have%20different%20schedules%20for%20different%20machines%2C%20you'll%20need%20to%20adopt%20a%20more%20complex%20evaluation.%20In%20order%20to%20work%20that%20out%2C%20we'd%20have%20to%20have%20a%20full%20explanation%20of%20each%20of%20your%20codes%20in%20the%20column%20called%20Tasks.Schedule%2C%20though.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2502443%22%20slang%3D%22en-US%22%3ERe%3A%20date%20increasing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2502443%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1091801%22%20target%3D%22_blank%22%3E%40mok1995%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20addition%20to%20the%20basic%20functionality%20needed%2C%20it%20is%20interesting%20to%20look%20at%20the%20names%20of%20the%20columns%20in%20your%20worksheet%20and%20speculate%20why%20they%20are%20what%20they%20are.%20It%20looks%20to%20me%2C%20as%20a%20matter%20of%20fact%2C%20this%20is%20probably%20an%20exported%20query%20from%20another%20database.%20Tables%20in%20that%20source%20database%20are%20probably%3A%3C%2FP%3E%3CP%3ESections%3C%2FP%3E%3CP%3EMachines%3C%2FP%3E%3CP%3EParts%3C%2FP%3E%3CP%3ETasks%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20maybe%20one%20other%20for%20People%20Needed%2C%20wherever%20that%20comes%20from.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20that's%20case%2C%20I'd%20strongly%20recommend%20bypassing%20this%20intermediate%20Excel%20step%20and%20go%20directly%20to%20that%20source%20database%20to%20run%20your%20queries%20to%20get%20due%20dates%20for%20maintenance.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello all
I have an excel sheet containing information for many machines that needs maintenance, each machine has a starting date of maintenance and the maintenance will be done repetitively in a specific frequency ( some are daily, weekly, monthly, semi annual or annual and many frequencies), I need to put the date of today or tomorrow or any coming date to see what are the machines that need maintenance at that date and the information of each machine

i need to link excel file to access and show the results in access
I will link the file, the task schedule is the frequency (NM:1 is monthly....) the task last date done is the reference date of each machine
how can I do it ?

the dates are in 2012, but I need to increase dates to reach today as in 2021

8 Replies

@mok1995 

There are two parts to the question.

 

First, filtering on a specific date to see which machines are due for maintenance.

 

Second, advancing the dates to the present.

 

From Access, you can link the excel worksheet and use it similarly to how you would a native table, albeit with some limitations. Excel, for example, can't be updated directly from Access, so any new data entries or updates will need to be done on the Excel side. You could resort to VBA to use recordsets to update the workbook, I think, although that's probably more involved than you want.

 

Write a query in Access, using this linked Excel worksheet, and apply a criteria to the field containing the maintenance date you want to filter on. In essence it would be:

 

SELECT * 

FROM YourLinkedExcelWorkSheet

WHERE MaintenanceDate = Today()

 

Noting, however, that you have different schedules for different machines, you'll need to adopt a more complex evaluation. In order to work that out, we'd have to have a full explanation of each of your codes in the column called Tasks.Schedule, though. 

 

Advancing the dates is a matter of updating the value in Tasks.DateLastDone as appropriate. How do you do that now?

@mok1995 

 

In addition to the basic functionality needed, it is interesting to look at the names of the columns in your worksheet and speculate why they are what they are. It looks to me, as a matter of fact, this is probably an exported query from another database. Tables in that source database are probably:

Sections

Machines

Parts

Tasks 

And maybe one other for People Needed, wherever that comes from.

 

If that's case, I'd strongly recommend bypassing this intermediate Excel step and go directly to that source database to run your queries to get due dates for maintenance.

i am new to access, but i am responsible to do this, can you do it for me please ?
in excel the dates are in 2012, i need to reach my today date to see what tasks need maintenance today but in access
i am new to access i do not know how to work in access, can you help me and do it for me please

@mok1995 

I am retired and I no longer take on client work. 

 

It sounds like this is one of those situations where you have to make some investment, either in the form of effort to learn how to use tool, or in the form of paid consultation to do it for you. 

 

You have data from 2012, correct? That's nine years old. What's been happening in that time? How has this been done? Who did it before? Do you know where the data actually came from?  How would you expect to advance the dates? Are all of those machines still in operation after nine years? No new machines? No obsolete machines? At a minimum I'm going to guess this would be a 30 - 50 hour project, if it is done properly. That's much more than is possible in a forum like this unless you are able to do the bulk of the work yourself.

 

 

thank you so much, it is a project for university, but i am new user in access
really thank you dear
"...it is a project for university...."
Do you mean that it is a part of a class you are taking at your university? Or that you are taking on the project while working for the university?

If it is the former, then the best option would be to ask the teacher of that class for assistance.
If it is the latter, then the best option is to discuss this with the person who hired you and clarify your ability to perform the work.

thank you dear