Search results

  1. G

    Better way to DoCmd.TransferSpreadsheet

    No problem at all. Happy to help. As far as your update to the error handler it shouldn't be necessary. If the user doesn't select a file it wool just close. If you want to show an error if they don't pick anything, put an else in the "If .show = true" statement. You should try to code to avoid...
  2. G

    Setting Quantity as a function

    Can you post what you have so far so we can get a better idea of what you're trying to do?
  3. G

    Export

    I think what abbaddon is getting at is if the database is in a shared location you can store your tables in a second database and use linked tables in your front end locations. If not, it's fairly easy to import/export an access table. Here is some sample code to bring up the FileDialog box to...
  4. G

    Cannot Get Word To Quit

    JHB is right. Use oApp.Quit Once you close the active document there is not an active document anymore (unless you have multiple files open). I would suggest just doing the oApp.Quit method and commenting out your close command. The document will close if the application quits.
  5. G

    Email personalised Word attachment to list of recipients

    This works in 2007. Might need some tweaks to work in 2003. First, you need to put a "Content Control" in your word doc. Open your document, click on the developer tab, select rich text, then enter the name for the field (i.e. FullName). Then, in Access, you need to reference the Microsoft...
  6. G

    Better way to DoCmd.TransferSpreadsheet

    It appears you've taken full credit for my code...
  7. G

    Loop code - source for query

    OK, this is much simpler than I originally understood: Notes: 1. You didn't give me tble_practice so instead I got the list of KCodes from tble_Activity. 2. You will still need to tweak it a little bit as I can see that the numbers aren't coming through in the right rows. However, since I...
  8. G

    Access 2010 XP vs Access 2010 Windows 7

    If it still doesn't work once you have the code fixed then post your code again.
  9. G

    Loop code - source for query

    The only way I'm going to be able to actually write the query for you is for you to post your database.
  10. G

    Access 2010 XP vs Access 2010 Windows 7

    Went through your code a little more thoroughly. Found a few issues: Example 1 Concepts: 1. Don't Dim variables in the middle of your code. It makes it difficult to read. Put all of your variable declarations in the top of your sub. 2. Use consistent indentation. For example, your If and...
  11. G

    Access 2010 XP vs Access 2010 Windows 7

    I've got some general tips for you that I'll post later but I just noticed this: If rstset.RecordCount > 0 Then rstset.MoveLast rstset.MoveFirst Do Until rstset.EOF setorg = rstset.Fields("OrgID") sql = "Update c_orgs Set setup = True Where adminid='" & AdminID & "'"...
  12. G

    Access 2010 XP vs Access 2010 Windows 7

    What about Dave's suggestion? Is that how your files are coming out? I'm having a hard time following your code. From what I'm looking at, it doesn't make sense why this ISN'T creating multiple files on your machine. Can you post your database?
  13. G

    Access 2010 XP vs Access 2010 Windows 7

    Make sure you make the change to destinationFile as well
  14. G

    Access 2010 XP vs Access 2010 Windows 7

    If you were using API, you would probably know it. Doesn't look like it here. Might be that part of your problem is that in Windows 7, the user's desktop is by default located at C:\Users\[Username]\Desktop instead of "Documents and Settings." You can get the user directory more reliably like...
  15. G

    Search, if no record - pop-up

    I keep telling people, nearly anything is possible.. just depends on how much work you want to put into it. To create the popup to allow for user input you have a few options. 1. Very simple, no-frills option: Dim TempUser As String TempUser = InputBox("Search returned no results. Please...
  16. G

    Access 2010 XP vs Access 2010 Windows 7

    Are you using windows API? Can you post the offending code?
  17. G

    retrieve name of object user clicks on

    Good point.
  18. G

    Loop code - source for query

    Please read these carefully. You're looking for the Microsoft EXCEL 12.0 Object Library.
  19. G

    Dashboard That Links to Multiple Databases

    Yes. And I'll just quote myself here instead of asking again.
  20. G

    Loop code - source for query

    Sure, but you're not doing any of that calculation inside of the crosstab query. Your crosstab query is simply summarizing the data you have already calculated.
Back
Top Bottom