Hi folks, thanks for looking. I have a database that takes down order details.
Each customer has there own priceid in the price table.
the errors that I get say enter parameter value for:
products.unit price
Unit Price
Discount Price
Maybe a bit of history would help with this, the user said originally that they wanted to be able to give customers a discount on every line of stock.
Then realised after completion that this is no good for there requirments. The only option is to give each customer there own price list.
I have the structure
tblCustomers
CustomerID Autonumber and key
then other non relevent field at the mo
tblOrderDetails
OrderDetailID Key
OrderID
ProductID
Quantity
Price
tblOrders
OrderID Key
CustomerID
OrderDate
PurchaseOrderNumber
ShippingMethodID
Payment Received
Comment
tblPrice
PriceID Key
ProductID
Price
CustomerID
tblProducts
productID Key
ProductName
Cost
Im really stuck here, my form wont work
The Record Source for the AddNewOrderandDetail form reads:
SELECT Orders.OrderID, Orders.CustomerID, Orders.OrderDate, Orders.PurchaseOrderNumber, Orders.ShippingMethodID, Orders.FreightCharge, Orders.PaymentReceived, Orders.Comment, Customers.Address FROM Customers INNER JOIN Orders ON Customers.CustomerID=Orders.CustomerID;
The Record
The Record Source for the AddOrderDetail is:
SELECT OrderDetails.OrderDetailID, OrderDetails.OrderID, OrderDetails.ProductID, OrderDetails.Quantity, OrderDetails.Discount FROM OrderDetails; .
I got to deliver this in the morning HELP PLEASE
Thanks
Mark
8 1839
Hi guys I didnt mention I got to have this done for the morning.
Thanks
Mark
Well first thing is that your record source doesn't reference your tables correctly.
Your table is named tblOrderDetails NOT OrderDetails. And the same goes for the other record source.
This is the area I cant get into, im a newbie and I dont know how to write the correct details
Im gonna check through them, im not sure the queries are set up properly.
Thanks
Mark
Hi I have changed the record source for the addNewOrder to
I have changed the OrderDetailSubForm to
I haev gone through the queris and changed the sql to the values below headed by query name.
Query Add New Customer and Order Details
SELECT tblOrders.CustomerID, tblOrders.OrderDate, tblOrders.PurchaseOrderNumber, tblOrders.ShippingMethodID, tblCustomers.VATTaxRate AS Expr1, OrderDetails.OrderID, OrderDetails.ProductID, OrderDetails.Quantity, tblProducts.UnitPrice AS Expr2, OrderDetails.Discount AS Expr3
FROM (tblCustomers INNER JOIN tblOrders ON tblCustomers.CustomerID=tblOrders.CustomerID) INNER JOIN (tblProducts INNER JOIN OrderDetails ON tblProducts.productID=OrderDetails.ProductID) ON tblOrders.OrderID=OrderDetails.OrderID;
Query Add New Customer
SELECT tblCustomers.CustomerID, tblCustomers.CompanyName, tblCustomers.FirstName, Customers.LastName, tblCustomers.Address, Customers.[Post Code], tblCustomers.PhoneNumber, Customers.FaxNumber, tblCustomers.Notes, Customers.VATTaxRate AS Expr1
FROM tblCustomers;
more to come in a min
This is the record source within my AddAnOrder Form reads. tblOrders.FreightCharge, tblOrders.PaymentReceived, tblOrders.Comment, tblCustomers.Address FROM tblCustomers INNER JOIN tblOrders ON Customers.CustomerID=tblOrders.CustomerID;
Thanks
Mark
This is the record source within my AddAnOrder Form reads. tblOrders.FreightCharge, tblOrders.PaymentReceived, tblOrders.Comment, tblCustomers.Address FROM tblCustomers INNER JOIN tblOrders ON Customers.CustomerID=tblOrders.CustomerID;
Thanks
Mark
So... does that mean you've solved the problem?
I solved one problem which was when I opened the db I got an error screen, but that just required me to change the details in the startup menu area.
The rest of the problems still exsist.
When I go into my db I get Syntax error in join opperation.
I can only get into my form in design view.
Can I send it to you so you can tell me what I need to do.
Thanks
Mark
Well you're joining Customers.CustomerID when you don't have a Customers table. Like I already said in a previous post, it should be tblCustomers.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: lig |
last post by:
hi ,
i am trying to do something that is not working (cuz i tried that)
so i hope for some ideas about it.
ok, so i have this recursive function, lets call it recFun
and i wanted to be able to...
|
by: Joe User |
last post by:
Hi all....I have a feeling this is going to be one of those twisted query
questions, but here it goes anyways....
I want to generate a report that shows the chronology of events (represented
by...
|
by: Al Sav |
last post by:
I have the following in form load. When the form shows up, the graphics
vanishes.
This works, if I execute this from button_click. But, even that vanishes if
minimize and restore the form. Similar...
|
by: Mihailo |
last post by:
I am new in VB.NET and at the bigining of my work I have a problem. I wont
to make small program which contain 3 forms. In the 1st Form I put 10
Textbox which
contents I need to display in the 3th...
|
by: sandraz444 |
last post by:
I have an expression in the query under my form to autofill the date
under a certain condition but it wont write to the underlying table??
The date shows in the form but not the table. Does anyone...
|
by: Mark Rae |
last post by:
Hi,
See the previous thread Request.Form abuse in this newsgroup...
I'm looking for a simple and efficient way to prevent people hijacking the
<formtags on my websites and using them to send...
|
by: Beagle804 |
last post by:
OK. I'm very new to Javascript and what I've learned so far has been find snippets of code on the web and using them in my php programs. I put together an application that allows a Reset button to...
|
by: =?Utf-8?B?QWNoaWxsZXNfX19f?= |
last post by:
Im finding problem with this code. When i try to display the newindow, its
not responding. It does create the new window, but doesnt respond at all.
Just stays blank. I'm fairly new to c#(just a...
|
by: ukfusion |
last post by:
I have a php page with a form....the form has a hidden variable called subjoin. with a value of 1
in the page the data is posted to i have the following code
<?...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
|
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: 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...
| |