Recent content by Oy Vey

  1. O

    Stupid programmer tricks

    Sometimes I love having to plow through tons of other people's completely undocumented code. If Err.Number <> 2295 Then Debug.Print Err.Number & " - " & Err.Description Else Debug.Print "Something happened. I don't know what. No one tells me anything. " & _ "Here I am...
  2. O

    "Object variable or With block variable not set" (Run-time erro '91')

    In the VB editor, click on Tools | References. Make sure that the appropriate Data Access library is referenced. I looked at your sample and saw ADO 2.1 was referenced; did you change this or is that the original setting? In case you're wondering, something similar happened to me at the...
  3. O

    Sharing classes via referenced .mdb

    Ok. After a long weekend and several cups of coffee I think I have a workaround. To restate the problem simply, an Access project that references a second project cannot use uninstantiated classes from the second project. You can't initialize the class from the first project because it cannot...
  4. O

    Sharing classes via referenced .mdb

    Hi all... I've a frustrating situation at the moment. I inherited an architecture that consisted of various access-based applications that used common functionality from modules located in another database. This common database was linked as a reference in the VBE. This is using AccXP. What...
  5. O

    Need some general thoughts, pointers, philosophies

    Just a nitpick with that statement; its not so much that DAO is the default database access object as it is that MS decided to enable it alongside ADO in new projects. http://support.microsoft.com/default.aspx?scid=kb;en-us;825796 Anyway, back on topic - plan, get input, plan some more, get...
  6. O

    Need some general thoughts, pointers, philosophies

    Make this book your bible. I picked it up a few months after I left a company where a project I worked on had failed. In going through the quiz in Chapter 2 I found that the project scored around 36 points on a hundred point scale.
  7. O

    Database compacting problems

    1. Copy the .mdb to your desktop or another folder where you have full permissions. 2. Attempt to compact. 3. When that fails, go to each table and attempt to sort. When you get that error again, you'll have found your corrupted table/record. If you are lucky, you should be able to find...
  8. O

    Running Access via command line

    I'd imagine you'd use a shell command along with this. Does your VB program launch Access and then do other stuff, or do you need to wait for Access to finish before moving on?
  9. O

    Recode Table

    Try: MonthName(Month(datevalue))
  10. O

    What in the world is this error?????

    Nothing to stress about, unless the printed results are just really screwed up on the new printer. Access does not have a print renderer. Instead, it uses the print driver/renderer from either the default or specified printer on the machine that the report is created on. You will commonly get...
  11. O

    Access skills assessment test

    Hi all, I'm looking for an intermediate to advanced Access/database/programming concepts test to give to job candidates. I took one myself around two years ago that was actually fairly challenging, but I've had a difficult time finding one since. The google searches I've done so far turn up...
  12. O

    Date format

    You could try this... create a lookup table with a key field and the acceptable ranges if you are going to continue with the year/year format. Link back to the original table after creating a new foreign key field or converting the data in that table to match the new lookup IDs. Convert the...
  13. O

    Pesky Date/Time problems

    The Format method converts the date to a string, which tends to confuse things. Try CDate(Format([datefield], "Short Date")). The net effect is that you get "06/09/2004 00:00:00AM" but the time will not be displayed.
  14. O

    Embedded image irritation

    Hi all, Here's a solution to a problem I had been encountering. I was creating a cover letter for a mailing in Access rather than using a Word mail merge. I obtained the company logo from the Word document using a simple cut&paste, and the sample page worked great. However, when the report...
  15. O

    Best practice form design

    My methodology for designing an interface is to use paper first. Define the data that you need the user to input, and see which parts of it you can infer, default or otherwise not require the user to actually have to type in. Next step is to isolate the essential fields and ensure they are...
Back
Top Bottom