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

Help Creating an Order Form/Invoice

Hi All,

I am new to MS Access 07, & do not know any VB, on a new business adventure. I am running Office07 on Vista Home Premium.

I am in the process of creating a database that in the end I will be able to create quotes, bill out customers for security services, cctv products and installs,create purchase orders to my distributors being that I keep no inventory on hand, and track payments such as deposits on equipment.

What I need help with is creating an invoice I have tried and been looking everywhere for help. I know I need 2 more tables; OrderMaster, & OrderDetails; What I would like to know is how exactly do I need in the columns labled and how do I get it transfered to an invoice. In the Details part I would like to have the Product#, Quanty, Descript, OurPrice, Line Total.

Below is the tables I have already created. Any help or examples that anyone is able to provide would be greatly appreciated. Thank you in advance for help.

CUSTOMERS
CustomerID(PrimaryKey[AutoNumber]); CompanyName; Prefix(Look-up from "Prefix" Table); FirstName; LastName; Address; City; State(Look-up from "State" Table); Zip; PhoneNumber; Ext; CellNumber; FaxNumber; E-MailAddress; NewsLetter; Notes; CustomerSince; Referred; CustomerType(Look-up list); TaxExempt(Look up from Yes/No Table)

DISTRIBUTORS
Distributor(PrimaryKey); Contact Name; Address; City; State(Look-up from "State" table); PhoenNumber; Ext; FaxNumber; CellNumber; E-MailAddress; Website; Notes(Memo field); Terms(Look-up from "Terms" table); Limit

PRODUCTS
Prouct#(PrimaryKey); Manufacturer(Look-up from "Manufacturer" table); Distributor(Look-up from "Distributor" table); Category(Look-up from "Category" table); CCD; Lens; IR(Look-up from "Yes/No" table); #ofLED's; MinLux[Color]; MinLux[B/W]; MinLux[Sens-up]; Resolution[Color]; Resoltion[B/W]; OpticalZoom; DisgitalZoom; Style(Look-up from "Style" table); Control; AutoIris(Look-up from "Yes/No" table); Varifocal(Look-up from "Yes/No" table); Motorized(Look-up from "Yes/No" table); Day/Night(Look-up from "Yes/No" table); OutDoor(Look-up from "Yes/No" table); Heater(Look-up from "Yes/No" table); Fan(Look-up from "Yes/No" table); VandalProof(Look-up from "Yes/No" table); Mount(Table contained look-up list); CH; HDD; FPSRec; Format(Look-up from "Format" table); Media(Look-up from "Media" table); LAN(Look-up from "Yes/No" table); USB(Look-up from "Yes/No" table); AddtionalInfo(Memo field); SpecSheet(Attachment); Disontinued(Yes/No check box); MSRP; OurPrice; Cost; WorksWith(Look-up from "Product#" query); Desript

Employees
UnitID(PrimaryKey); FirstName; LastName; CellNumber; DC#; NYSecID#; ExpDate

I also have the following tables which are pretty much self-explanatory:
"State", "Prefix", "Yes/No", "PayType", "Terms", "Category", "Style", "Format", "Media", "Mount"

I apologize if this is to much info posted; if anyone would like to see my database please let me know I will be more than happy to send it. Once again I would like to thank everyone in advance for any help you can provide.

Joe M
Oct 23 '08 #1
6 7970
mshmyob
904 Expert 512MB
Ok big job but assuming you have everything else working your two tables called Order and OrderDetails hold all the data about a specific order (invoice).

The Order table would have at a minimum the fields of:
OrderID (PK)
OrderDate
CustomerID (FK)

Your OrderDetails table would hold the detail of each line item for the Order:
OrderDetailID (PK) - make this an autonumber
OrderID (FK)
CustomerID (FK)
ProductID (FK)
OrderDetailSalePrice (picked up from product table - must store here in case of price changes in future)
OrderDetailQTY
OrderDetailDESC (your choice - again in case you change descriptions in future - picked up from product table)

Depending on how you do taxes that would have to be taken into effect also but I don't know enough of your business rules.

really before you start you need to identify ALL you business rules. You should also read up on normalization.

cheers,
Oct 23 '08 #2
NeoPa
32,556 Expert Mod 16PB
Normalisation and Table structures should help with that.
Oct 23 '08 #3
OK... I have created the "Orders" table w/ the following fields
OrderID(PK)
OrderDate
CustomerID(FK)
Salesman(FK)
ProjectedInstall

Sales Tax is 8.375% for services and goods.

For the "OrderDetails" table how do I get it to pull up the info such as product price and descript??

I want to thank you again for your help.

Cheers
Joe
Oct 23 '08 #4
mshmyob
904 Expert 512MB
A number of ways to get the price and description. A simple way is to make a combo box that looks to your ProductID in your product table and include the price and description fields. In the combo box hide the price and description and then in the AFTER UPDATE event of the combo box you can just refer to the combo box columns for the price and description and store in your OrdersDetail table.

or

You could just create the combo box to the productid in the product table and in the AFTER UPDATE event you could do a DLOOKUP in the product table for the price and description.

As for the tax if you only have one tax rate for both goods and services and it is always applied to all goods and services the percent value can be stored in the Order table. Again store it for the order because it may change in the future.

cheers,

Sales Tax is 8.375% for services and goods.

For the "OrderDetails" table how do I get it to pull up the info such as product price and descript??

I want to thank you again for your help.

Cheers
Joe
Oct 23 '08 #5
I don't fully understand how to set up the AFTER UPDATE event and how to do a DLOOKUP. Can you please explain a little more.

As far as the tax rate you want me to create another field on my "Orders" table, correct??

Once again thank you.

Joe
Oct 24 '08 #6
mshmyob
904 Expert 512MB
For the tax rate yes you would create a new field in the Order table and store the tax rate for there. That way you can calculate the taxes paid for that order.

In the properties of your combo box you will fnd an EVENT tab and in that you will find an AFTER UPDATE event. In that event go to the code builder (press the 3 little dot button) then your code would be something like so:

Expand|Select|Wrap|Line Numbers
  1. dim dblProductPrice as Double
  2. dim strProductDesc as String
  3.  
  4. dblProductPrice = DLookup("[ProductPrice]", "tblProduct", "[ProductID] = " & Forms!frmYourForm.cboProductID.Column(0))
  5. strProductDesc = DLookup("[ProductDesc]", "tblProduct", "[ProductID] = " & Forms!frmYourForm.cboProductID.Column(0))
  6.  
  7.  
Where
ProductPrice and ProductDesc are the names of the fields in your Product table. tblProduct is the name of your Product table. frmYourForm is the name of the form where the combobox control is. cboProductID is the name of your combobox control.

cheers,


I don't fully understand how to set up the AFTER UPDATE event and how to do a DLOOKUP. Can you please explain a little more.

As far as the tax rate you want me to create another field on my "Orders" table, correct??

Once again thank you.

Joe
Oct 24 '08 #7

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

Similar topics

18
by: Jeremy Weiss | last post by:
I'm trying to build a database that will handle the monthly billing needs of a small company. I'm charting everything out and here's what I see: table for customers sub table to track payments...
4
by: Jeremy Weiss | last post by:
Thanks to much help from everyone in my previous thread, I've made it a pretty fair ways into my billing/invoicing db. I'm now needing a way to cycle through all the records in a table and create...
5
by: Tom Keane | last post by:
Okay, so the deal is, I am doing a mail merge document in order to print invoices. The field I get the amount of money is "invAmount". What I would like to do is be able to manipulate this number...
15
by: NomoreSpam4Me | last post by:
Hi there i have a little problem with my invoice. Here it is: i have a main menu with buttons, one of my button is "Create new invoice", when click on it a form pop up so i can enter my...
10
by: pcthug | last post by:
Hi All, I am creating multi-tier app in vb.net using visual studio .net. I create a invoice.vb class file with properties, events and methods. This also has a line item collection class...
11
by: Siv | last post by:
Hi, I seem to be having a problem with a DataAdapter against an Access database. My app deletes 3 records runs a da.update(dt) where dt is a data.Datatable. I then proceed to update a list to...
10
by: tranceport185 | last post by:
I have been banging my head on this one for 2 days I might just need a fresh set of eyes. This query lists all of the sales categories which are listed in POSCat, more specifically...
1
by: robinsand | last post by:
I am a new C++ programmer. I am still having trouble with certain data types and constructors, among other things. I'm not sure if I've used "std::string" properly throughout this program. I need...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.