Search results

  1. M

    Updatable query with a join

    Thanks Pat. I would create the queries in SQL Server and link them to Access. I will give it a try.
  2. M

    Altering a table with multiple fields

    A quick fix is to run the alter query once for each field you want to add. After this all the fields should be in the table.
  3. M

    query with range

    You may have to actually assemble the query in code based on the form fields used. You would need a string variable like strSelect containing the basic query and another string variable like strWhere. Put the range info info into this variable and append it to strSelect. Make the resulting...
  4. M

    Updatable query with a join

    Hi, Pat has said that with JET, if any of the queries in a chain uses aggregation, you can not update a table using it. Does anyone know if this is also true with SQL Server? Thanks, Mike
  5. M

    Updatable query with a join

    Thanks Pat. I think I will use a make table query and destroy the new table after using it. I agree with you on the storing of aggregated data. But I am modifying an existing program that has a reorder point field in the inventory table and all I have to do is update that field once a month...
  6. M

    Updatable query with a join

    Yes. It does.
  7. M

    Updatable query with a join

    Hi, I'm trying to run the following query: "UPDATE Inventory INNER JOIN qryItemReorderPoints ON Inventory.[Item Number] = qryItemReorderPoints.[Item Number] SET Inventory.[Reorder Point] = qryItemReorderPoints.ReorderQuantity;" But I keep getting the message "Must be an updatable query."...
  8. M

    IsNull vs. Len()

    Thanks for all the intelligent ideas. Now I know why Null is the programmer's worst enemy.
  9. M

    IsNull vs. Len()

    I have read that it is better to use Len() than IsNull() because it is faster. However, it seems that there are times when the variable being evaluated is actually Null, Len() = Null and not zero. In fact, I believe I got this advice from the famous VBA Handbook. But the Access help says that...
  10. M

    Removing Queries with Code

    Thanks Bert.
  11. M

    Removing Queries with Code

    Using DAO.
  12. M

    Query output to MSExcel

    What does the first line have to do with the rest of your question?
  13. M

    Removing Queries with Code

    Hi, Does anyone know the VBA code to remove all queries, forms, reports, etc from a given Access database? Removong them manually takes too long. Thanks, Mike
  14. M

    FileSystemObject Problem

    I believe that you do not have a reference to the MS Windows Scripting Host.
  15. M

    Here is a mysterious one

    You may want to try to reinstall Access on the boss's machine. However, a better solution is to get another server and set it up with Windows 2003 and use it as a terminal server. Set up a desktop for all the users on the terminal server. Install Access on the terminal server and copy both...
  16. M

    Changing links with code

    Thanks ChrisO, I have downloaded your database and plan to take a look at it. But I wanted to show folks the solution I came up with. The first part of the solution is to create a table, called tblMyLInkedTables, in a common backend. Give it CompanyCode, Name, SourceTableName, and...
  17. M

    Quotation Mark Problem

    If not MS, how about a world consortium? Could this be an instance of the computer programming community forgetting that their products are used by human beings? What should we say to the O'Haras of the world? Having to use a quote santitizing function every time we access a string is a waste...
  18. M

    Quotation Mark Problem

    Perhaps we could convince MS to use a character that is never used when writing like "~" to designate strings. Maybe they could make up a new character for this.
  19. M

    Changing links with code

    Hi, I'm maintaining a frontend access db that can be attached to different backends depending on what company it is for. Each company frontend has tables that are linked to the same backend because they are common to all companies and other tables that are linked to their own backend. The...
  20. M

    before update of form

    You could just let the error happen and then trap it. Find out what the error number is and, if that is what causes an error in the future, inform the user with a very user-friendly message. ExitSub: Exit Sub HandleError: If err = 1234 then msgbox "Blah blah blah"...
Top Bottom