473,748 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Form and ability to Query by Date to determine our Contract Obligation

Sandboxer
11 New Member
I want to be able to program Access to provide for me, by individual day, what my contract obligations are to my customers. Will Access recognize all the individual days in between a date range (simply a "from" date and a "to" date)? Additionally, I need to delivery a specific quantity of product when the customer's inventory is within about parameter levels. EXAMPLE:

"During the Date Range January 1, 2010 through April 30, 2010 when Customer ABC's inventory under Contract 123 is between 100,000 and 80,000 Customer ABC may withdraw 100 Widgets per day from Inventory, guaranteed deliverable"

"During the date range January 1, 2010 through April 30, 2010 when the customer ABC's inventory under Contract 123 is between 0 and 79,999 customer ABC may withdraw 50 widgets per day from inventory, guaranteed deliverable"

"During the date range May 1, 2010 through September 30, 2010, when customer's inventory is between 0 and 100,000, customer may withdraw 100 widgets from inventory, but delivery is interruptible."

"During the date range May 1, 2010 through September 30, 2010, when customer's inventory is between 0 and 80,000, Customer may deliver 100 widgets to inventory, guaranteed accepted."

"During the date range May 1, 2010 through September 30, 2010, when customer's inventory is between 80,001 and 100,000, customer may deliver 50 widgets to inventory, guaranteed accepted" etc.

These are the records needed (and if they already exist in a table somewhere I will use a drop down box)

Customer ABC (drop down from existing table)
Contract 123 (drop down from existing table)
Date Range From M/D/YYYY (not sure how to do this)
Date Range To M/D/YYYY (not sure how to do this)
Customer Inventory Between "From Value" "To Value" (drop down from existing table in which each Inventory Range Possible is given an Auto-Number primary key)
"Value" per day from or to inventory. (drop down)

For the QUERY that I envision, I'd want to be able to select a date range (probably the upcoming month but possibly just one day) to determine what my obligations are for that month or day for each contract / customer.

So, I'd want the query to return for me:
For the date range September 1 - 30, 2010

Customer ABC
Contract: 123
Maximum Widgets allowed to be stored under contract: 100,000
Inventory 80001 - 100,000
Maximum 50 Widgets per day
Inventory 0 - 80,000
Maximum 100 Widgets per day

Customer XYZ
Contract 789
Maximum Widgets: 200,000
Inventory ______ to _______
________ widgets per day

etc. Then, I'd like to be able to total up how many widgets per day we may be asked deliver.

I just don't know how Access will know that August 1 - 31, 2010 is within the range of April 1, 2010 through September 30, 2010. I currently keep all of this in one cumbersome spreadsheet and would love to make things easier. Also, same question relative to inventory levels:

Ideally I'd like to be able to forecast on a particular day exactly what my deliverability is based on each contract's current individual inventory level. So, the same question holds ... will Access know that 74302 is within the range of 0 - 80001 ?

Hope that makes sense %^} and thanks in advance for reading all the way to the bottom!

Sandy
Dec 17 '07 #1
4 2852
shaffy08
20 New Member
you can use make-table query to get your contract obligation between two dates. use
Between [Type the beginning date] And [Type the ending date]
under criteria. when you run the query, it will ask you for the dates. sorry, i'm newbie so if its not what you are asking for, my apologies.
Dec 18 '07 #2
Sandboxer
11 New Member
Thanks for trying to help me, fellow newbie! That makes sense, I'll read up on make table queries ... I've probably done them without knowing ;^!

In the example that I will try, my "date range" is made up of two separate records, April 1, 2008 is in the field "From" and September 30, 2008 is in the field "To". Will the query be able to find all records for the range July 1, 2008 through July 31, 2008 ? Hmmm ...
Dec 18 '07 #3
Sandboxer
11 New Member
Thanks for trying to help me, fellow newbie! That makes sense, I'll read up on make table queries ... I've probably done them without knowing ;^!

In the example that I will try, my "date range" is made up of two separate records, April 1, 2008 is in the field "From" and September 30, 2008 is in the field "To". Will the query be able to find all records for the range July 1, 2008 through July 31, 2008 ? Hmmm ...
Okay ... I just took the Microsoft Online "Queries II". I think that I can say use the expression >June 30, 2008 for the From Field and the expression <August 1, 2008. Yes? I'll let you know if that works!
Dec 18 '07 #4
shaffy08
20 New Member
Thanks for trying to help me, fellow newbie! That makes sense, I'll read up on make table queries ... I've probably done them without knowing ;^!

In the example that I will try, my "date range" is made up of two separate records, April 1, 2008 is in the field "From" and September 30, 2008 is in the field "To". Will the query be able to find all records for the range July 1, 2008 through July 31, 2008 ? Hmmm ...
'm not sure. But if you place

Between [Type the beginning date] And [Type the ending date]

under criteria, access will ask you for beginning date and end date once you run the query. hope this help.
Dec 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
7747
by: Apple | last post by:
1. I want to create an autonumber, my requirement is : 2005/0001 (Year/autonumber), which year & autonumber no. both can auto run. 2. I had create a query by making relation to a table & query, but I can't update record in query or in form. I believe the problem is due to the source query. In source query, there is a filter to show the incomplete record ("is null" in delivery date)], but I need to re-use the job no. if the job is...
1
3546
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary key) ss#
4
1686
by: ChadDiesel | last post by:
Hello, I have a form that users type in a part number and a due date. I then run a report that prints the part number, the components needed and the processes needed. For example: ------User Form------- Part 1 6/25/05 Part 2 6/28/05
0
1649
by: DL1 | last post by:
I am trying to pull data out of my SQL 2005 server using Excel. I have the SQL query working properly; however, I want to modify a portion of the query (the date) with a prompt to give me the results I need. I want a button/macro to prompt me for the date I want to reference. Take that information and change the date in my SQL query to match. SQL query: (Bolded the part I need to change) SELECT JCCM.Contract, JCCM.Description,...
1
7856
by: jesmi | last post by:
my code is: U]employee.cfm <html> <head> <title>Employee List</title> </head> <body> <h1>Employee List</h1>
3
18715
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however, working with complex reports is tricky Assumption: Reader of this article have basic knowledge of creating data reports. Creating a Parent-Child Command and create a DataReport Suppose we have a database called company with two tables ...
3
2457
by: hrreece | last post by:
I am trying to use the Dlookup expression in a macro to pull the value from the "Price" field in the following query. The query works fine and the Dlookup function did as well until I added a new field to the "Contracts" table called "ContractYear". SELECT Contracts.ID, Contracts.Commodity, Contracts.Date, Contracts.ContractYear, Contracts.Option, Contracts., Contracts.Bushels, Contracts.Price, Contracts. FROM Customer INNER JOIN Contracts...
1
1471
by: Rebeccar | last post by:
I am a self taught access user who muddles along! I have a database which has two tables one for recording staff details and the other to record their contract details - they are linked by their payroll number. I have built a group by query which returns the latest contract details entry for each payroll number I have then built an additional query so that I can add in additional info such as name, salary, contract end date, etc. This works...
5
8809
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract packages' that include as attachments: a contract (PDF or TIF), a pricing tool (Excel), a companion document (Word). Clerks detach these files into a shared drive file on our intranet. I'm building an 'contract package management' application...
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
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...
0
9386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
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
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
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
3
2217
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.