Results 1 to 3 of 3
  1. #1
    thudson is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    6

    Enter Parameter Value error? Parameter not a database field?

    I have developed a database which acts as a stock control database and I am trying to create an invoice from the data in the database. The previous database I used was no good for keeping a tally of the stock that I am selling, hence the need to write another database.


    The stock control part works well, but the Invoice part that I have tried to model on the old invoice form does not work correctly as I get an Enter a Parameter Value for fkOrderID when I open the form, but this is not a field name I use, because in the new database I changed the name to fkOrderNo??
    I have searched through the fields and I can't find the field name mentioned anywhere!
    I will attach a copy of the Relationship diagram and the query views of the new database and the original database to the post.
    Here is the SQL view of the invoice form for new database:
    Code:
    SELECT tbl_Customers.CustomerNo, tbl_Customers.CustomerFullName, tbl_Customers.CustomerStreet, tbl_Customers.CustomerCity, tbl_Customers.CustomerRegion, tbl_Customers.CustomerPostCode, tbl_Customers.CustomerTel, tbl_Customers.Fullname, tbl_Customers.fkOrderNo, tbl_COrders.OrderNo, tbl_COrders.fkCustomerNo, tbl_COrders.OrderDate, tbl_OrderLine.LineID, tbl_OrderLine.fkOrderNo, tbl_OrderLine.fkPartNo, tbl_OrderLine.OrderQty, tbl_OrderLine.LineTotal, tbl_Parts.PartNo, tbl_Parts.PartName, tbl_Parts.SalePrice, tbl_Parts.Part_DescriptionFROM tbl_Customers INNER JOIN (tbl_Parts INNER JOIN (tbl_COrders INNER JOIN tbl_OrderLine ON tbl_COrders.OrderNo = tbl_OrderLine.fkOrderNo) ON tbl_Parts.PartNo = tbl_OrderLine.fkPartNo) ON tbl_Customers.CustomerNo = tbl_COrders.fkCustomerNo;
    Here is the SQL view of the invoice form for original database:
    Code:
    SELECT Order.OrderID, Order.fkCustID, Order.OrderDate, Customer.Name, Customer.Address1, Customer.Address2, Customer.Town, Customer.County, Customer.Postcode, Products.[eBay Sell Price], Products.ProductID, [OrderID]+2038 AS Expr1 FROM Products 
    INNER JOIN 
    ((Customer INNER JOIN [Order] ON Customer.[CustID] = Order.[fkCustID]) 
    INNER JOIN OrderLine ON Order.OrderID = OrderLine.fkOrderID);
    I'm afraid I am baffled why this field is appearing as it is not a field in the database!!
    Any ideas will be appreciated!

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Well Access does not make it up, so it will be mentioned somewhere?
    Change the name back as a temp measure and see if that gives you a clue as to where it is being mentioned.

    You would need to upload the db if you cannot find it?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Open the new invoice field and look at the Filter and Order By properties, you probably have a saved filter in there.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-13-2019, 02:45 PM
  2. Enter Parameter Value Error
    By wojosh6 in forum Access
    Replies: 2
    Last Post: 12-15-2015, 09:56 AM
  3. Report 'Enter Parameter Value' Error
    By ndehhh in forum Programming
    Replies: 6
    Last Post: 10-18-2015, 05:18 PM
  4. Enter Parameter Value error
    By bronson_mech in forum Queries
    Replies: 9
    Last Post: 11-30-2013, 05:00 PM
  5. Replies: 13
    Last Post: 01-10-2012, 09:56 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums