473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

Sandboxer
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 2825
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
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
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
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
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,...
1
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...
4
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: ...
0
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...
1
by: jesmi | last post by:
my code is: U]employee.cfm <html> <head> <title>Employee List</title> </head> <body> <h1>Employee List</h1>
3
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,...
3
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...
1
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.