473,394 Members | 1,865 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,394 software developers and data experts.

Getting closer with Inventory Database

18
Hi guys. I posted a question last week about getting the order qty based on my case packs. I couldn't figure out the code, and I couldn't seem to explain myself right. So what I did was added 5 new label and text boxes on my form to do my math for me.

1: =Abs([availableStock])
2: =([qtyOrder]/[cartonqty]) + .4 (I couldn't get it to round up...)
3: =Round([qtyCasepack],0)
4: =[qtyRoundCase]*[cartonQty]
5: =[qtyFinalOrder]*[unitCost]


4 and 5 are my final answers... The qty to order, and how much that item will cost.

So then I put these fields on my report, but the values will not show up. I tried doing all 5 of these formulas in the SQL Statement, and that did not work. I tried sourcing it to read from the form, and that did not work either.

Does anyone know what I am doing wrong at this point?

Thanks,

Stephanie
Aug 26 '08 #1
5 1859
puppydogbuddy
1,923 Expert 1GB
Hi Steph,
Still working hard on your system, I see!

Try placing your report in design view and look to see if the component fields from which your calculations are derived appear in the field list. The field list is an icon on the report designer toolbar that looks like a writing tablet with a list on it. The field list shows every field included in the report's record source (bound fields).....and generally would include the fields representing components of the calculations. These "component" fields are then referenced in the textbox control where the actual calculation is displayed.

Some bit of advice for you. Did you know there is a sample inventory database that comes with Access? The best way to learn code is to look at code used in similar applications. Even though your have designed your application to your specifications, there will still be some similar processes for which you can look at the code that was used. To get this database Click the key icon to start Access, and instead of opening an existing file, select Access Database Wizards, Pages, and projects. Then click on the inventory database icon.

Also see this link for a 3rd party inventory database for Access that costs $35 (less than the cost of a book) and I believe it comes with source code.

http://www.tinit.co.uk/?s=Stock_Control

Additionally, one of the best book reference sources I have ever used, uses an inventory system as one of the illustrative examples, showing step by step how to build an inventory application from the ground up. The book is entitled "Building Microsoft Access Applications" Copyright 2005 by John L. Viescas, Microsoft Access MVP.

Hope this helps.
Aug 28 '08 #2
StephR
18
Hi Steph,
Still working hard on your system, I see!

Try placing your report in design view and look to see if the component fields from which your calculations are derived appear in the field list. The field list is an icon on the report designer toolbar that looks like a writing tablet with a list on it. The field list shows every field included in the report's record source (bound fields).....and generally would include the fields representing components of the calculations. These "component" fields are then referenced in the textbox control where the actual calculation is displayed.

Some bit of advice for you. Did you know there is a sample inventory database that comes with Access? The best way to learn code is to look at code used in similar applications. Even though your have designed your application to your specifications, there will still be some similar processes for which you can look at the code that was used. To get this database Click the key icon to start Access, and instead of opening an existing file, select Access Database Wizards, Pages, and projects. Then click on the inventory database icon.

Also see this link for a 3rd party inventory database for Access that costs $35 (less than the cost of a book) and I believe it comes with source code.

http://www.tinit.co.uk/?s=Stock_Control

Additionally, one of the best book reference sources I have ever used, uses an inventory system as one of the illustrative examples, showing step by step how to build an inventory application from the ground up. The book is entitled "Building Microsoft Access Applications" Copyright 2005 by John L. Viescas, Microsoft Access MVP.

Hope this helps.






Thank you! Yes, I am still working on it... I acutally used the inventory template from office.com for a reference on the code.

I'll try out what you said and let you know how I did.

Thanks again!
Stephanie
Aug 28 '08 #3
StephR
18
OK... I double checked on everything you suggested and it's still not working. If I take the field from the field list, there is nothing displayed. If I source it to the form, then #Name comes up...
Sep 2 '08 #4
puppydogbuddy
1,923 Expert 1GB
OK... I double checked on everything you suggested and it's still not working. If I take the field from the field list, there is nothing displayed. If I source it to the form, then #Name comes up...
Hi StephR,
If there is nothing displayed after setting fields from the field list to the control source for the corresponding textbox controls in the report designer......I would run the reports recordsource query by itself (not as part of the report) and see if the query is returning any data.

Beyond that, rather than try and guess at the cause of your problem, I think you should read the tutorial called "Creating Reports Manually" at this link:http://www.jegsworks.com/Lessons/dat...rtmanually.htm

It has a pictorial step by step "how to" and explains how calculated fields operate, and why certain errors occur. Even if the tutorial does not directly solve your problem, I think you will be in a better position to know what question to ask.

Let me know what happens.

PDB
Sep 2 '08 #5
StephR
18
Hi StephR,
If there is nothing displayed after setting fields from the field list to the control source for the corresponding textbox controls in the report designer......I would run the reports recordsource query by itself (not as part of the report) and see if the query is returning any data.

Beyond that, rather than try and guess at the cause of your problem, I think you should read the tutorial called "Creating Reports Manually" at this link:http://www.jegsworks.com/Lessons/dat...rtmanually.htm

It has a pictorial step by step "how to" and explains how calculated fields operate, and why certain errors occur. Even if the tutorial does not directly solve your problem, I think you will be in a better position to know what question to ask.

Let me know what happens.

PDB

THANK YOU so much for this reply!

I will let you know how it goes.

Stephanie
Sep 8 '08 #6

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

Similar topics

4
by: Oleg | last post by:
Hi, Not really a PHP specific question, but I am using PHP on Linux box so it's kinda relevant. I'm developing a site which will periodically update inventory via a large batch file. I'm...
5
by: gregork | last post by:
I have painstakingly created an excel 2000 workbook for the very complex recipes I have to formulate. I have 2 sheets- 1 for configuring the recipe and 1 that is like an inventory of all the raw...
5
by: tHeRoBeRtMiTcHeLL | last post by:
Well, I think I have bitten off a little more than I can chew (at least all at once), and I'm only trying to hammer out tables/relationships at the design level. Which translates to "Seasoned...
4
by: DeepDiver | last post by:
I am developing an inventory database in SQL Server. I realize there are many commercial (as well as some non-commercial) inventory offerings, but my client has specific requirements that would...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
2
by: Bassman1020 | last post by:
I am look to find information regarding barcode scanners and the programs to upload to a database. I want to be able to scan an item and see if it is in inventory. I also need to checkin items and...
2
blyxx86
by: blyxx86 | last post by:
Great insight needed!! Good evening everyone.. I've come to a point where I can't even fathom how to go forward. I'm attempting to create a serialized inventory. I don't know where to begin....
13
by: jcato77 | last post by:
I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the...
12
by: Richard Penfold | last post by:
I am developing an order tracking database, which to keep this explanation simple, consists of 'Orders' table, 'Order Details' table, 'Deliveries' table & 'Inventory' table. There are one-to-many...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.