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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mikevh
  • Content: Threads
  • Order by date
  1. mikevh

    Where to put user-written module?

    Hi. I've just written my first Python module, and I'm wondering where to put it so Python will find it when I import it. Here's what I've got in sys.path: ['', 'C:\\WINDOWS\\system32\\python23.zip', 'C:\\Python23\\Lib\\site-packages\\Pythonwin', 'C:\\Python23\\Lib\\site-packages\\win32'...
  2. mikevh

    Static variables in Python?

    I've been teaching myself Python for about 3 weeks. Does Python have something equivalent to a static variable in C, i.e., a variable local to a function that will retain its value across calls? The closest thing I've been able to come up with is a global variable that's modified within the...
  3. mikevh

    How do you keep commands from echoi

    How do you keep commands from echoing as you type them at the command prompt? I was sure it was "echo off" (and "help echo" seems to support this), but all that seems to do is make the command prompt disappear -- it apparently has no other effect. Your commands still...
  4. mikevh

    How do I treat STDIN like any file entered on commandline?

    I'm just getting back to Perl after being away for a while and am now using it on Windows instead of Unix as before. I've written a Perl script that works like Unix "wc", because I missed it on Windows, and to brush up my Perl after the absence. This works fine as long as I enter file...
  5. mikevh

    Same db, 2 different machines, different error numbers?

    Another user has copied a db that I programmed onto her machine. We both have the same version of Access (2000). In a module, I'm executing a "DROP TABLE" statement. The table I'm trying to drop may or may not exist. On my machine, if the table doesn't exist, I get error 3371...
  6. mikevh

    Importing a DBase IV file using TransferDatabase

    I'm trying to import a DBase IV file using DoCmd.TransferDatabase, and am having no luck. After looking at the help, I'm confused about the arguments. Here's what I've got: DoCmd.TransferDatabase _ TransferType:=acImport, _ DatabaseType:="DBase IV", _...
  7. mikevh

    opening ADODB recordset

    What am I doing wrong here? I'm trying to update one field in a table. This compiles okay, but I'm getting a run-time error on the "rs.Open": Error number -2147217904 (80040e10) No value given for one or more required parameters. I'm used to DAO, not ADO, but thought I'd give it...
  8. mikevh

    Problem with Emacs and accented characters

    Hi -- I'm cut-and-pasting text from a Spanish document into Emacs. (I don't speak Spanish.) Emacs is changing the accented characters in the Spanish text into other characters. For example, año becomes "aqo", and quién becomes "quiin". telefónico becomes...
  9. mikevh

    Excel: Call a procedure from Data > Validation?

    Hi -- One of the columns in my worksheet calls for fancier validation than I could figure out how to do with any of the options in Data > Validation. I wrote a procedure to do it and I'm calling it from the sheet's SelectionChange event. This works okay, but I'm wondering if I could somehow...
  10. mikevh

    What property of a table shows whether it's hidden?

    Hi -- Can anyone tell me what property of an Access table shows whether it's hidden? I hid a few tables by right-clicking them and checking the "hidden" properties box, but if I look at the table properties in design view (I can still get to the tables 'cause I checked "show...
  11. mikevh

    CurDir function: what it returns?

    Hi -- I'm new to writing Access VB code. I'm trying to use the CurDir function to get the full path of the directory my database is in. The full path is definitely "D:\work\Chase Sample\payment" However, when I call CurDir, it returns the PARENT of the current directory...
  12. mikevh

    splitting to hash/substr function

    I'm reading a tab-delimited file with column headings and writing out to a fixed-length text file. The code I have works, but I'm wondering if there isn't a better way to do some of this. I want to get each line of input into a hash with the tab- delimited data fields as values and the column...

Part and Inventory Search

Back
Top