Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by emik

  1. emik

    Run-time error 3052 file sharing lock count exceeded

    Hi guys, This is a strange problem I recently encountered. I found a fix for it on Microsoft's website but I want to understand the problem and how it might potentially affect my program. The error is: "File sharing lock count exceeded. Increase MaxLocksPerFile registry entry." Essentially I...
  2. emik

    How to use a field with spaces in a recordset

    Hi, I currently have a process to import an Excel file using the Transferspreadsheet method. The Excel file has fields with spaces, so the field names in my Access table must match (thus having spaces). In the code for a field without spaces, the recordset is test =...
  3. emik

    Creating a status bar

    Yes I did that, but it's in very technical terms. I'm looking for a more english translation on when I should be using it. Yielding control to the operating system and returning a value of open VB forms doesn't help me understand why it works in this particular instance. Thank you.
  4. emik

    Creating a status bar

    Hey it works! Thanks for all the suggestions. A few follow up questions, why do I need to explicitly identify controls? eg: why is Me!txtPercent different from just txtPercent since it's on the current form? Lastly what exactly does "DoEvents" do? If the code is running, why is it necessary...
  5. emik

    Creating a status bar

    Hi guys, I've created a percent counter by using this code in a loop, so with each iteration i and j get increased and a percentage is shown. Dim strFormat as String j = j + 1 Total_progress = j / i strFormat = Format(Total_progress, "0%") txtPercent.value = strFormat...
  6. emik

    How can I get Access to run faster

    These are all very good suggestions. The way I was going to go was to create the 2 queries, one where it matches and one where it finds un-matched and doing it in 2 parts would speed it up (plus I wouldn't have to check conditions). However what I realized was the data was at a lower level...
  7. emik

    How can I get Access to run faster

    I'm not sure because there are conditions I need to check. I know limiting the number of IFs and conditions will make it go faster but I have no choice. I need to look through each record, if a match is found determine the type of match, so I have a short CASE statement (only 4 elements)...
  8. emik

    How can I get Access to run faster

    Hi, I've never written a program with this many records before and the time it takes to process is through the roof. I have 1 table with 5,000 records and another table with 160,000. What I need to do is loop through the 160,000 and update the 5,000 accordingly. Essentially my code looks...
  9. emik

    Take certain values from report details into report page footer

    Hi, I have a dynamic report report and based on a certain criteria I want to put records into the page footer. For example, if my table looks like this: Item Cost Use ----- comp $1,000 my computer car $2,000 house $3,000 where I live I want the...
  10. emik

    Creating and populating a new Excel file through Access VBA

    I hate not being able to modify, I meant until Monday
  11. emik

    Creating and populating a new Excel file through Access VBA

    Thanks for the advice, I'll check it out. Some priorities came in though so I probably won't be able to get around to it until then. Thanks guys.
  12. emik

    Creating and populating a new Excel file through Access VBA

    Hi, Here is what I'm trying to do. I have 6 queries and I need to output the data to the same Excel sheet with calculations that I will do in Access. So essentially I want to create an Excel file, write my values to it and then save it. I know the starting part would be something like: Dim...
  13. emik

    Formatting and Rounding

    Ok, I say forget the comma! Round(Number / 1000000, 1) - works great, I wish I knew I was missing an arguement, it would have saved me a lot of time.
  14. emik

    Formatting and Rounding

    Ya I realized that it returns a string with replace because when I try to sort it by Marketvalue it takes the first character, so $33,9 is now smaller than $4,1. Oh these horrible users.. ;)

Part and Inventory Search

Back
Top