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 TouchToneTommy 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: Sashanan
  • Content: Threads
  • Order by date
  1. Sashanan

    Determining modal at runtime?

    Is there any way I can determine at runtime if the form that is currently active has been opened modal or non-modal? I couldn't find a form property for this. I could, I suppose, use a boolean variable blnModal which is updated by the routines in which I open the form (false for non-modal, true...
  2. Sashanan

    Relationship on a varchar field vs an int field

    I've been having a discussion with a co-worker who feels that relationships between tables on a varchar type column should be avoided, as in his opinion they'll be much slower in query execution than on int type columns. In the database we're working on, we've currently got a varchar relation...
  3. Sashanan

    ORDER BY: A numeric sorting puzzle

    I'm stumped by a sorting order my customer needs on a field containing a multipart numeric code. Code consists of a country code, a letter, a two-digit year code and then an increment, for instance 31S03008 would be a record in the Netherlands (country code 31), and number 008 there in the...
  4. Sashanan

    Evaluate if a form is open without triggering its Load event

    At a certain point in my VB6 program, I want to check if another form is currently open (and refresh an ADO control there if it is). However, if it's not open, I want nothing to happen. I've tried doing this with the .Visible property as follows: If Form1.Visible = True then...
  5. Sashanan

    Type mismatch when referencing an ADO recordset

    In VB6, one of my forms has an ADODC control that accesses a table in my SQL Server database and fills a couple of fields with it. Nothing special, I've got dozens of these throughout my application. For some reason, on *one* client computer (it does not occur on my system or for any of the...
  6. Sashanan

    Spaces appear in empty textboxes on one computer

    I've got a puzzler here. In a VB6 database application running on SQL Server, one of my forms has a bunch of textboxes (as well as datacombos and checkboxes) bound to an ADO control, each populated with a different field from the current record. Many of these fields are optional and often empty...
  7. Sashanan

    PrintForm on landscape?

    If I print a form's contents using: Me.PrintForm Is there any way I can make it print as landscape rather than the default portrait? "Much that I bound, I could not free. Much that I freed returned to me." (Lee Wilson Dodd)
  8. Sashanan

    Font used for labels when using PrintForm

    At user request, most of the forms in my VB6 application have a "print screen" command button that simply executes: Me.PrintForm to print the form's contents. Works well except for one little problem: somehow the font for labels is larger than on screen, often causing label captions...
  9. Sashanan

    Enforcing unique values on a non-PK column

    In Access, I'm able to enforce that every value in a column is unique even if said column isn't the primary key. Am I able to do the same in SQL Server 7? I'll be able to solve this problem in my application too with a little recordset searching, but if it's as simple as setting a flag...
  10. Sashanan

    Ghost record in SQL Server 7 table

    In my database, a simple one-column table containing unique company names has a ghost record. It shows a value there, but attempting to use it as a foreign key gives a key constraint, and when I try to remove it directly from the table view, I get an error stating the record appears to have been...
  11. Sashanan

    Char/varchar datatypes

    The SQL Server documentation informs me that: - When a field has the char datatype, every value saved takes up as many bytes as the maximum length defined; - When a field has the varchar datatype, every value saved takes up as many bytes as the value uses, and no more. It then goes on to tell...
  12. Sashanan

    Pi in VB6

    I must be overlooking something obvious here, but I can't seem to use the Pi constant in VB6. What few MSDN references I can find to it aren't for VB, and several guess attempts (Pi, Pi(), Math.Pi, VbPi) all failed. So how do I use Pi in a VB calculation? "Much that I bound, I could not...
  13. Sashanan

    Getting quotation marks into a constant

    One of the routines in my VB6 application opens an Excel worksheet, and fills it with some data from SQL Server. In a recent addition, it sets the data format for one of the columns to financial data formatted as Dutch euros. The command for this is, in my case: xlsApp.Cells(row...
  14. Sashanan

    98 SE: Exploring hangs when deleting folders

    Every so often I do a major cleanup of my data partition, throwing out folders, sometimes big ones. The thing is that if I delete more than just a few files - say, if I do a couple of folders with several hundred files each - my explorer tends to hang. It deletes the files properly, then it...
  15. Sashanan

    Can I reasonably expect a performance gain with XP?

    Friends have been telling me that my computer, with its specifications, will perform better under XP than under my current OS, 98 SE. I've heard things about better memory management but I'd really rather know from somebody with the experience if, on the following setup, I should expect XP to...
  16. Sashanan

    Concatenating fields which may have a null

    In an SQL Server 7.0 database, I'm trying to concatenate a couple of fields into one string. The problem is that one of them is often Null, and doing so causes the entire string to default to Null; which makes sense but is not what I want. Rather, I want it to be treated like an empty value in...
  17. Sashanan

    Calling a click event from another form (VB6)

    Maybe I'm missing something obvious here, but how do I call a click event (on a command button or a menu item) from another form? When I'm on the form myself, using the line cmdMyButton_click works just fine, but when I try MyForm.cmdMyButton_click from another form, I get a "Method or...
  18. Sashanan

    Creating Excel output from VB: header and aligning text in columns

    In a VB6 database application, I have several options for outputting information to an Excel worksheet. I've got it to the point where it neatly outputs column headers (and bolds them), pastes all the records under them and puts a report title on the first row. There's two more things I want to...
  19. Sashanan

    ZoneAlarm blocking outgoing DCC in mIRC

    I've recently installed a free version of ZoneAlarm after a few hacking threats from displeased individuals (probably boasts but better safe than sorry). It's working out fine for me with only few nuisances, but one of them is that I don't seem to be able to send files through mIRC anymore by...
  20. Sashanan

    Suspected processor overheating

    It's been steaming hot the last few weeks and I'm noticing a sharp increase in spontaneous reboots and fatal exceptions on my Windows 98 machine. Was like this last summer too. Somebody suggested to me that my processor may be overheating and that I should check this, and add more cooling if...

Part and Inventory Search

Back
Top