carrybag93
Registered User.
- Local time
- Tomorrow, 07:27
- Joined
- May 24, 2012
- Messages
- 73
I'm a new user to Access, and I'm using 2010 (if that helps).
I have three tables, one is called 'Customers', 'Sales' and 'Stock'.
I made a form for each of them, and at the moment I'm working on my 'Sales' form. The fields I have in this form are:
SaleID (the primary key, which is an AutoNumber)
CustomerID
StockID
Quantity
Unit Cost
Sub Total
VIP Discount?
After Discount
GST
Postage
Order Total
I have NO idea on how to get this to work. In the Relationships part, I connected the Customers primary key to the CustomerID in the Sales table. I connected the Stock primary key to the StockID in the Sales table. I turned these into Combo Boxes in the form.
When the user chooses a customer from the combo box in the Sales form, I want it to automatically fill in if the customer is a VIP or not.
In the Customers table, there is a 'VIP?' field, which is a 'Yes/No' data type. When the user picks a customer from the Combo Box in the Sales form, I want access to either tick or untick the 'VIP Discount?' checkbox based on what the Customer table has put in.
Then when they pick the Sale Item (StockID) from that combo box in the Sales form, I want access to automatically fill in the 'unit cost' field based on what the Stock item is in the Stock table.
Ok, with that in mind, I want the 'Sub total' field the calculate itself based on the values 'Quantity' x 'Unit Cost' fields. I have no idea on how to do this. Then I would like the 'After Discount' field to be automatically calculated as well, but only if the 'VIP Discount?' is ticked. The VIP Discount value is 5%. So that would mean taking the 'Sub Total' and take off 5% and presenting the result in the 'After Discount' field. Then, the GST Field should be calculated by taking a further 10% off the 'After Discount' field.
The postage is a whole other story, I might post that in another thread. The order total is GST + Postage. I have no idea how to make a calculation in Access.
If you would like me to send you my database so far or the requirements I need to make the database, I can send those.
I would really appreciate some help, I REALLY need it!!
I have three tables, one is called 'Customers', 'Sales' and 'Stock'.
I made a form for each of them, and at the moment I'm working on my 'Sales' form. The fields I have in this form are:
SaleID (the primary key, which is an AutoNumber)
CustomerID
StockID
Quantity
Unit Cost
Sub Total
VIP Discount?
After Discount
GST
Postage
Order Total
I have NO idea on how to get this to work. In the Relationships part, I connected the Customers primary key to the CustomerID in the Sales table. I connected the Stock primary key to the StockID in the Sales table. I turned these into Combo Boxes in the form.
When the user chooses a customer from the combo box in the Sales form, I want it to automatically fill in if the customer is a VIP or not.
In the Customers table, there is a 'VIP?' field, which is a 'Yes/No' data type. When the user picks a customer from the Combo Box in the Sales form, I want access to either tick or untick the 'VIP Discount?' checkbox based on what the Customer table has put in.
Then when they pick the Sale Item (StockID) from that combo box in the Sales form, I want access to automatically fill in the 'unit cost' field based on what the Stock item is in the Stock table.
Ok, with that in mind, I want the 'Sub total' field the calculate itself based on the values 'Quantity' x 'Unit Cost' fields. I have no idea on how to do this. Then I would like the 'After Discount' field to be automatically calculated as well, but only if the 'VIP Discount?' is ticked. The VIP Discount value is 5%. So that would mean taking the 'Sub Total' and take off 5% and presenting the result in the 'After Discount' field. Then, the GST Field should be calculated by taking a further 10% off the 'After Discount' field.
The postage is a whole other story, I might post that in another thread. The order total is GST + Postage. I have no idea how to make a calculation in Access.
If you would like me to send you my database so far or the requirements I need to make the database, I can send those.
I would really appreciate some help, I REALLY need it!!