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 Mike Lewis 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. NeilRP

    Simplify the vba code

    Instead of using AddNew and Update, I would build a SQL INSERT statement and execute it on the database.
  2. NeilRP

    Return Dates In English irrespective of Regional Settings

    I have produced a graph within an Excel application with months "Jan-05", "Feb-05", "Mar-05", etc along the x-axis. However, a colleague requires to use this in the Netherlands where (unsurprisingly) regional settings are in Dutch. Producing this graph, the month names are translated to Dutch...
  3. NeilRP

    Launch BO from a VB exe

    farhy, Thanks - a step forward, but I still cannot trap the error if the logon details are incorrect. Cheers, Neil
  4. NeilRP

    Launch BO from a VB exe

    Hi all, I wish to launch Business Objects from a VB6 executable. I need to pass in the UserID & password from user input and therefore want to bypass the startup prompt. I know I can use the command line, but if the password is incorrect then I get the prompt up. I want to recognise the...
  5. NeilRP

    whatever happened to vba.shell?

    Your problem is that the .avi postscript is not assigned to any application, so the shell command does not know what application to startup to run the .avi file. Try specifying the application in which to open the avi in the Shell command ie x=vba.shell("C:\Program Files\...\xxx.exe...
  6. NeilRP

    Empty Subreports HELP!

    The answer to this has been supplied in another thread. Basically, set your field ControlSource to =Iif(HasData,[RSFieldName],"") and if there is no data being returned then the Field will be displayed empty. Since the fields are displayed then so will the labels.
  7. NeilRP

    Blank subreports creates errors

    dhookom, HasData property fixed a very similar issue for me. Have a star! Cheers
  8. NeilRP

    Shell command doesn't work on jpg files

    You've got to open it in some application. Use internet explorer if you want to view it read only Private Sub Form_Load() Shell "C:\Program Files\Internet Explorer\Iexplore.exe f:\b.jpg" End Sub
  9. NeilRP

    For Each Subform in Form....

    Try For Each FrmCtl In SubFrmCtl.Form.Controls in your *** line
  10. NeilRP

    Combine number in two columns

    To ensure your numbers keep their format... =TEXT(A1,"00") & "-" & TEXT(B1,"0000")
  11. NeilRP

    Excel 2000 lookup question

    Use the COUNTIF function in your occur column eg =COUNTIF(nrLookup,">=" & B3) - COUNTIF(nrLookup,">" & C3) where nrLookup is your lookup range B3 contains your lower range C3 contains your upper value
  12. NeilRP

    IF Statements - I am over my head, PLEASE HELP

    To keep your sanity, try arranging your data in a table (maybe in a hidden sheet) and look up the values you want. The top row allows lookup to work in both directions. For tidyness' sake, I have named the range nrTable. 0 1 2 3 0 0 85 110 0 0 0.5 0.5 500000 0 0.75 1 1000000 0.1 1 1.2 Then use...
  13. NeilRP

    Retrive UNC Path

    The following should work. You need to set a reference to 'Windows Script Host Object Model' Function PathTransToUNC(sPath As String) As String Dim oWSHNet As Object, drv Dim sDriveLetter As String, sUNC As String Dim bNextOne As Boolean bNextOne = False sDriveLetter = Left(sPath, 2) If...
  14. NeilRP

    How do I best use the function statement in similar instances?

    You can use a variable for the control's name. Use the construct strControlName = "Control1" x=Me.Controls(strControlName).Value

Part and Inventory Search

Back
Top