Recent content by GolfProRM

  1. GolfProRM

    Update Query gives error

    Any chance you could upload a copy of your DB with some sample data?
  2. GolfProRM

    Update Query gives error

    I don't believe a Join would work based on the way the query is setup. Since the update value is a query, it doesn't contain a unique identifier to pass through to the FoodTable. You simply need a WHERE statement on the main update query to tell it which record to update. Simplified Code...
  3. GolfProRM

    Problem with a continuous form

    That would be a limitation of continuous forms. Even though Access shows you multiple records, Access only sees one form, so anything outside of a bound field will show the same across all records.
  4. GolfProRM

    Update Query gives error

    I just realized what you don't have is a Where statement in the actual update query. You're telling it to update FoodTable.DeliverySize, but you don't tell it which account in FoodTable to update.
  5. GolfProRM

    delete query

    If you want to use code, it would be: DoCmd.SetWarnings False DoCmd.OpenQuery "QueryName" DoCmd.SetWarnings True
  6. GolfProRM

    Update Query gives error

    Question: when you run the select query and view the results, does the query allow you to add new records or change the data shown in the query results? If not, your select query isn't an updateable query. If that's the case, go to Access Help and search troubleshoot queries - under the select...
  7. GolfProRM

    Subform - Accessing last record.

    What about using this simple code after the setFocus command? DoCmd.RunCommand acCmdRecordsGoToNew EDIT: RG beat me to it... His code will take you to the last visible record - my code will take you to the new blank record.
  8. GolfProRM

    Update Query gives error

    Just want to make sure it's not a copy/paste error, but in your original post, there's a space where it looks like there shouldn't be one. Formulation_Combo.Se gment_Combo) AND May not actually be a problem, but want to make sure.
  9. GolfProRM

    Exporting Formatted Report to Excel

    I'm guessing so, although I've never done it. If I didn't have a bunch of work to get done today, I'd do a google search and see what I could find. You might try doing a search to see if anyone has built the code to do it.
  10. GolfProRM

    Exporting Formatted Report to Excel

    Okay -- put these lines right before your transferspreadsheet line Dim stamp As String stamp = Month(Date) & Day(Date) & Year(Date) Then, to date stamp the spreadsheet, you do this: DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "Month End On Hold", "\\usnfs0\RoyerD\2008...
  11. GolfProRM

    Exporting Formatted Report to Excel

    That's because you can't export to a sheet that already exists. You have two options - you can either create a unique name for the spreadsheet (like a date-stamp on the spreadsheet name) or you can delete the old spreadsheet before exporting the new data. I've got date-stamp code if you want...
  12. GolfProRM

    Menus - gone....

    If that doesn't work, this thread has some options for you to try. http://www.access-programmers.co.uk/forums/showthread.php?t=117753&highlight=lost+menu
  13. GolfProRM

    DBL Click - Macro Builder

    This is actually very simple VB code. The easiest way to get the code you need is to create a button that opens the form. Using the wizard, you can match up the field that you're looking up. Create a code block for the double-click event, then open up the code and paste the code from the...
  14. GolfProRM

    Exporting Formatted Report to Excel

    The value you enter as the second parameter in the call should match the sheet name in the excel file. Double check that value.
  15. GolfProRM

    Exporting Formatted Report to Excel

    You want just the public sub. You are correct about how to create a module. You don't want to use the exact same name as the function though (it can confuse Access). To use that code as a module, you'll want to change the word sub to function. I've updated the code below -- I also realized...
Top Bottom