Topics Search

Net Work Days in Access

Net Work Days in Access
Views: 80
In Excel, I frequently use the formula, Networkdays, to calculate the number of business days that it has taken someone to process an order. I was wondering if there is a way to do the same thing in Access? I have a Project Received Date field and a Project Released Date field. I would like to calculate the business days between these two dates (please note, some of them may cross years (i.e. the project was received 12/28/2011 and released 1/5/2012). Is this possible, or should I stick to doing the calculation in Excel
Sponsored Links:

More topics


How can i connect

I am working vb 6.0 before and I have ideas how can I work vb6 into ms access, but I think its my time to explore more in I wonder can I add access into Were I can't adodc in vb. and give very detailed steps to work on my problems.

Table design and relationships

I am in the process of creating a scheduling application in, I am using MS Access as the backend.

Simple scenario:

1) the boss puts a blank schedule on the desk
2) staff select the days they want to work
3) she then uses my app to assign staff to the days
4) previews and verifies schedule
5) prints out in an excel format

Application layout: a Month Calendar is used to select the start date of a 28 date range. Saves the Start Date and the End Date to textboxes. The 28 day date range (just the day, Oct 1, 2010), 1 is saved as the text property of a checkbox control. She then selects the checkboxes of the days the staff wants to work.

Data that needs to be saved:

1) Start Date
2) End Date
3) Date Range
4) Employee ID
5) Days Selected

Current Tables and Relationships

Is this the correct approach to what I am trying to do?

Calculating Work Days

Prior to Access 2010, I would use the following query expression (Work_Days([Date1],[Date2]) to get the number of work days between two dates. It is now not working.

C#form-access db and crystal reports

I have never used crystal reports.
I have an access database. I have an access form- I am creating form to replace it and still connect to database.
I have been told - Crystal reports work better with form.
first- can I still use access database with Crystal reports.
second- all pc's on network have access installed and up to .net 2.0

do I have to install any software on each pc for Crystal reports to work?
The program will be on local network

Data Access with ADO.NET

If you are anything like I was when you began your search for knowledge on Microsoft's .NET technology, you were quite confused when first confronted with ADO.NET and how to implement it within your ASP.NET pages. This series of articles will first be a simple overview of what ADO.NET is, and second, will be a look at the specific objects and functionality that make up ADO.NET as a whole. My hope is that this series of articles will be beneficial to intermediate as well as advanced developers who are moving to .NET. Any prior knowledge of ADO and ASP.NET will be particularly helpful. So let's get started!

Past Due Invoices by payment terms

The query I have below. Is returning records with the Payment Terms for NET 30 are showing as “15-30 Days Past Due”. The NET 30 payment terms should show as “31-60 Days Past Due” and the NET 15 payment terms should show as “15-30 Days Past Due”.

Finding Median in Query

I currently have a Query set to give me the Average of # Days, and I am needing to change it to show me the Median and not the Average.

How would I do this?

I have included my SQL below.

SELECT [1 All Import].MSTSF, [1 All Import].[TOS Code], [1 All Import].[Rendering], [1 All Import].[ Name], [1 All Import].Net, Count([1 All Import].[Ref #]) AS [CountOfRef #], Count([1 All Import].[Apt Date]) AS [CountOfApt Date], Avg([1 All Import].[# Days]) AS [AvgOf# Days], Avg([1 All Import].[Distance]) AS [AvgOfDistance] FROM [1 All Import] GROUP BY [1 All Import].MSTSF, [1 All Import].[TOS Code], [1 All Import].[Rendering], [1 All Import].[Name], [1 All Import].Net

Access and problems

I'm used to VB6 and when my old computer died I had to upgrade to since I couldn't get visual studio to work on my new one. My pet project a movie registration program which was connected to AccesDB with a zillion functions does not work anymore. I have to rewrite the whole thing in and now the trouble starts.

Some of the column names in the Db had not so clever names (like Aspect Ratio etc.) .I can add the data but as soon as there is a column name which is bracketed (in the sql-field) I get aSyntax error in INSERT INTO'statement when I get to the line "objDataAdapter.Update(ds, "tblDVD")".
Any way to solve this? I thought of changing the name of the columns in Access but I don't have Access any more either which complicates the matter.

Due date - Working Days

I'm trying to work out what date would be 20 working days from a inputted date. So far I've got a table with the start date [startdate] and a holiday table. I'm using Access 2010.

I know that to work this out normally would be DATEADD (day,20, startdate)

There seems to be plenty of guides/code on how to work out the number of working days between two dates but I can't seem to find a anything about a due date. There must be something already existing out there.

Accumulating Dates

Please could someone help me with my issue

I am creating a database for my boss at work and we need an accumulative time and I cannot seem to resolve the problem

I need it so if an item goes on hold for say 3 days comes off hold back into re-work but another issue arises and it needs to go back into the hold box then I do not loose the 3 days it has already been on hold. so if it is on hold the second time for 6 days my time on hold box will no longer say 3 days it will accumulate the 2 hold dates to make 9 days