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 SkipVought 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: *

  1. MargeJones

    How can I color highlite one line of a listbox or textbox?

    A textbox and a listbox can only have one color and one type of font in them. Use a RichTextBox, highlight the text to be changed and use its SelFontName, SelColor, SelUnderline, SelBold, SelItalic, etc. properties. I know in a MSHFlexGrid you can change the colors and fonts. Here's an...
  2. MargeJones

    How to print when using the crystal report in VB 6

    You don't have to code anything to print the report from the preview window, unless you're talking about clicking a printer button that you've created to send the report straight to the printer. If that's the case then make sure you change the Destination property of your crystal report control...
  3. MargeJones

    Building Print line

    Instead of using the vbTab and spaces, the Printer object has it's own Tab feature that you can create your own columns with it. Using your code, try this: Printer.Print .Text & Tab(7 - Len(.Text)) This will start every column at the same spot. You may to play with the size a little bit to...
  4. MargeJones

    Error function causes runtime error Invalid procedure call or argument

    I have a VB project I created and when the user clicks a button, I have the code going through and looking for screen errors, such as fields that should have values in them. Whenever there is an error, I use the Error function to force the code to go to the routine's error handler. The error...
  5. MargeJones

    how to query database created by sqlserver?

    Use the ADODB Reference (Microsoft ActiveX Data Objects X.X Library) in VB. Also, you must set up your ODBC connection on the client. Then try the following code: Dim cn as ADODB.Connection Dim rs as ADODB.Recordset Set cn = New ADODB.Connection Set rs = New ADODB.Recordset...
  6. MargeJones

    General network error on UpdateBatch function

    I keep getting the following error when I'm adding a new record to a SQL Server database on the UpdateBatch function in VB for an ADODB.Recordset: [DBMSSOCN]General network error. Check your network documentation. It doesn't do it every time. Any ideas?
  7. MargeJones

    General network error on UpdateBatch function

    I keep getting the following error when I'm adding a new record to a SQL Server database on the UpdateBatch function in VB for an ADODB.Recordset: [DBMSSOCN]General network error. Check your network documentation. It doesn't do it every time. Any ideas?
  8. MargeJones

    How to access controls on one MDI Child From another form

    To call a control of one form from another form you must use the form name and then the control name. For example, if the MDIForm has the focus set to it and you want to set a variable equal to the property value of a control on another form use the following format: Variable =...
  9. MargeJones

    how to paste write or append text on a Word document

    First add a reference to the Microsoft Word X.X Object Library. Then use the following code to create and write to a Word document: Dim oApp As Word.Application Dim oDocument As Word.Document Dim stFileName As String stFileName = "C:\Example Document.doc" Set...
  10. MargeJones

    Come on all you bright sparks - answer this one!

    Are you refreshing your recordset to get the updated data?
  11. MargeJones

    Object Already Loaded Error with Flexgrid

    Are the number of columns for you grid set 1 number higher than the number of fixed columns?
  12. MargeJones

    Adding values in textboxes

    Use the Val() function: txtPadPriceTotal.Text = Val(txtPadPriceSF.Text) * Val(txtSF.Text) txtMatTot.Text = Val(txtPriceSF.Text) * Val(txtSF.Text) txtTax.Text = Val(txtMatTot.Text) + Val(txtPadPriceTotal.Text)

Part and Inventory Search

Back
Top