Search results

  1. G

    Append query (ran from VBA) adds records, despite key violation?

    Thanks for the translation namliam! There's no other code involved - just a linked CSV file and the table design. The duplicates will come up against data already appended to the table - 'SalesRecordSKU' is Indexed (No Duplicates). It does detect them, comes up the key duplication error, then...
  2. G

    Append query (ran from VBA) adds records, despite key violation?

    Bit of an odd one... - I have a module which runs queries on linked sales spreadsheets, to merge them in to one Access table. - To prevent duplication of sales, the primary key merges the sales record and item number fields. Today, it's found 103 key duplication errors, which is fine. But it's...
  3. G

    Opened exclusively error on split database?

    Just realised something else which might be important: One of the linked tables is NOT in the backend database, but links to a CSV file. It also has the 'opened exclusively' error when I try to open it. The rest of the 'normal' tables are fine. Are linked CSV's known to cause issues in...
  4. G

    Opened exclusively error on split database?

    Front-end. Back-end just has the tables.
  5. G

    Not part of aggregate function

    pbaldy, sorry forgot to reply! Thanks for the link. Managed to get it doing what I wanted. :)
  6. G

    Opened exclusively error on split database?

    I have a multi-user database. I've split it into a front-end and back-end. Distributed copies of the front end to each user. Thought I was sorted... However if I try to open, in any view, a query that somebody else is using, it comes up with the 'Opened exclusively by another user' error. Any...
  7. G

    Not part of aggregate function

    I've tried using the search but besides it not being possible the 'easy' way, I can't find anything specific to my function. I *think* it'll be some sort of subquery, but I'm only just getting used to writing SQL by hand so still need a little guidance... I need the minimum cost, grouped by...
  8. G

    SUM query (only include values if they meet a condition)

    SPOT ON! Easy to follow example and a great solution. Thankyou. :)
  9. G

    SUM query (only include values if they meet a condition)

    I'll get that table set up! :) Quantities are very likely to always be the same - I think they share a database. However, in that instance I'd take the higher value.
  10. G

    SUM query (only include values if they meet a condition)

    They operate separately. We have different contacts and get a different feed from each. For everything apart from this part, it works for us to keep them separate. It might be better to think of them as different suppliers who share stock.
  11. G

    SUM query (only include values if they meet a condition)

    I have many suppliers for many products. I want to get a total quantity for each product (stock from all suppliers). This bit is pretty simple! The problem is, two of the suppliers are actually the same. In the below example, it's A and B. There isn't duplication for every product, they sell...
  12. G

    1-to-1 relationship based on two fields

    Thanks Plog! You're right. I guess I'd been looking at it so long that I needed someone to tell me that it's nothing complicated, for me to realise it was something simple (data type mismatch)....
  13. G

    1-to-1 relationship based on two fields

    Pat, the problem is the inventory is from an external CSV file, which doesn't have OUR ProductID. So I have: tblPRODUCTS ----1-2-M---- tblINVENTORY ----1-2-1---- CSV (external) tblINVENTORY needs to relate to the external CSV to pull in quantity, cost etc. But the problem is, only a...
  14. G

    1-to-1 relationship based on two fields

    Sure! Basically need to join Stock and StockFEED into one set of data, but can't guarantee a unique field. But a combination of two (SKU and SupplierID) WILL be unique. Products PID Title 1 ProductA 2 ProductB Stock SID PID SKU SupplierID A 1 SKU1 SupplierX B 1 SKU1...
  15. G

    1-to-1 relationship based on two fields

    A 1-to-1 relationship based on two fields. Hear me out... tbl_Products has a one-to-many relationship with tbl_Stock. Each product can have many suppliers. tbl_Stock has a one-to-one relationship with an external feed (which I have no control over), containing cost, quantity etc. There are no...
  16. G

    Relationship for multi-variable discount table?

    That worked great, though then I had a problem with 'ambiguous queries'. *Think* I've solved that now - certainly seems to be giving the results I want. Thanks Pat!
  17. G

    Relationship for multi-variable discount table?

    Hi! I'm designing a product database. 1. Feed - this is linked to a CSV so can't change anything really 2. Products 3. Products_Feed - links 1 and 2. Multiple suppliers for stock so this basically says OurCode | SupplierCode Then there are tables for Category, Manufacturer and Supplier...
  18. G

    Hi!

    Hi, I'm Graeme! I'm a web designer by trade, working for a small computer parts e-tailer. Did a bit of Access at school but just jumped in at the deep end with a project at work so looking for a bit of help! This website has come up for every 'how on earth do I do that!?!' query so seems like...
Top Bottom