473,796 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help Creating an Order Form/Invoice

6 New Member
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(Prim aryKey[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(Lo ok-up list); TaxExempt(Look up from Yes/No Table)

DISTRIBUTORS
Distributor(Pri maryKey); 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#(Primary Key); Manufacturer(Lo ok-up from "Manufactur er" table); Distributor(Loo k-up from "Distributo r" 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(Loo k-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(M emo field); SpecSheet(Attac hment); Disontinued(Yes/No check box); MSRP; OurPrice; Cost; WorksWith(Look-up from "Product#" query); Desript

Employees
UnitID(PrimaryK ey); 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 8012
mshmyob
904 Recognized Expert Contributor
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)
OrderDetailSale Price (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,579 Recognized Expert Moderator MVP
Normalisation and Table structures should help with that.
Oct 23 '08 #3
firefighter17103
6 New Member
OK... I have created the "Orders" table w/ the following fields
OrderID(PK)
OrderDate
CustomerID(FK)
Salesman(FK)
ProjectedInstal l

Sales Tax is 8.375% for services and goods.

For the "OrderDetai ls" 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 Recognized Expert Contributor
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 "OrderDetai ls" 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
firefighter17103
6 New Member
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 Recognized Expert Contributor
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
12815
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 received. No biggie, right? Well, here's my problem. I don't know how to tell access to modify everyone's account balance each month. And I can't just always assume that their monthly bill is $16 just because their balance is $16. If I do that...
4
5141
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 invoice records for them in another table, but I have no idea where to begin. Here's the relevant tables: ============== Table: Customer_tbl
5
2852
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 to get different percentages of that total amount on my document. For example, display 10% of that amount. I am not too familiar with using field codes and have only used them a couple of times in the past. I'm currently doing this with Word 2000....
15
5284
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 information and one of the field (the user cannot change the info in it.) is invoice #. Right now, everythime i click on "Create new invoice", the invoice # add 1. But my problem is sometime the employee dont fill it (for x reason) and shut it down,...
10
1490
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 (lineitem.vb & lineitems.vb). I create a form (form1.frm) and write the corresponding code to initialize an invoice object, there are textboxes on the form to display the data, an update and load button. My data is stored in an access database.
11
2252
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 reflect that the 3 items have been deleted only to discover that the 3 items appear, however when I click on them to display their information which runs a datareader over the same database it appears that the data has now gone. I wondered whether...
10
1559
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 POSCat.Description. It then sums these categories as they appear in the sales history table InvLine. What I like about this layout is that even if there is a null sum value for a category it still will be listed and I can use something like iif to make it...
1
2094
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 to fix that, as well as add exception-handling, make sure everything is documented properly, and make certain that the code compiles and runs correctly. I'm under a very tight deadline, as this needs to run perfectly within the next 24 hours.
4
3679
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 haven't decided what the best way to do this is because I don't have much experience with generating printable forms. Early on I knew one of my modules would need to print a clear report so I used the open source SharpPDF library to generate the...
0
9533
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10461
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
10239
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
10190
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
10019
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7555
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
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4122
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
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.