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 strongm 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. PaulAH

    SQL aggregates

    George, I copied the code, paste it in Query Analyser and ran it. it worked absolutely perfectly. My figures are correct and I did not have to change any syntex. I can't thank you enough. I had about a dozen people looking at this and no one gave me the correct answer. Thanks lots.
  2. PaulAH

    SQL aggregates

    Thanks George. I have tried that but unsuccesfully. Here's what I tried to do. When I run this it says Invalid object name blahtable. I tried without (), etc... and can't get the syntex right. Any ideas? Please look in the code inclosed with *'s SELECT LBTRMATR.PROJECT_NO, max(LBBALCDE.Name) As...
  3. PaulAH

    SQL aggregates

    I would be grateful if someone could help me out with this. I have a sql statement (see below) which is dynamically built from vb. The sql works perfectly exept one line marked with *** SELECT LBTRMATR.PROJECT_NO, max(LBBALCDE.Name) As BalName, '' As LedgerId , max(LBTRMATR.USER_ID) as...
  4. PaulAH

    How to establish cursor position in a textbox

    Thanks strongm...I've used the SelStart before but didn't realise it would apply in this case....doh![sleeping2]
  5. PaulAH

    How to establish cursor position in a textbox

    Found what I was looking for....api SendMessageByNum does the trick. If anyone else is interested I found it here... http://www.developerfusion.co.uk/show/1161/
  6. PaulAH

    How to establish cursor position in a textbox

    Thanks Swi for your response....I'm editing some old code thats not that flash using an array of text boxes. So I don't want to change the control type in case it causes more problems than it solves!....any other ideas? I was hoping there might be an api?
  7. PaulAH

    How to establish cursor position in a textbox

    Hi all, I have various textbox's where users can input a number. Using one as an example of my problem... I want to limit the input of a percentage to upto 99.99. I know I can add validation after the users entered a value but I'm trying to be a bit smarter and not allow an invalid value to...
  8. PaulAH

    Unable to use SCOPE_IDENTITY successfully

    Thanks for your suggestions guys I've found @@Identity does work. I've tested with other users creating records after I do and before I run the @@Identity statement and it still returns the correct ID.. Thanks again and a star for you
  9. PaulAH

    Unable to use SCOPE_IDENTITY successfully

    I wish to retrieve the identity of a record I've just previously written (using ADO to MS SQL 2000 DB). Like this.... (table TEST_TABLE has an identity column) sSQL = "INSERT INTO TEST_TABLE (TESTFIELD1 ) " sSQL = sSQL & "VALUES(?)" Set oCommand = New ADODB.Command Set...
  10. PaulAH

    Equivalent of TopIndex property of ComboBox

    Thanks TipGiver....I've given you a star
  11. PaulAH

    Equivalent of TopIndex property of ComboBox

    Hi all, I've converted an application from VB6 to .net and I'm slowly resolving the issues raised. The VB6 code stores the current TopIndex of a combobox so that later the combobox can be redisplayed with the same item positioned at the top. However there doesn't seem to be an equivalent in...
  12. PaulAH

    DLL Redirection

    Has anyone had experince with using DLL redirection as a way of solving the DLL Hell. I've only recently become aware of it and was wondering whether it works (on W2000 +/or W2003) and what the problems are (if any).
  13. PaulAH

    Excel problems

    A template usually has a suffix of .xlt. I sugest you open you workbook and save as xxxx.xlt (making sure the type is 'template'), and change your code to open this file. You should find Excel will then open a workbook named Book1.xls based on your template. Even if auto save is on it won't...
  14. PaulAH

    VB launches Excel then interesting problem...

    Hi Brian, thanks for your response. Unfortunately what you suggest is'nt any good for this app as some of the workbooks the user's have open need to have the ability to be closed. If only one of these is open then it wouldn't allow the workbook to close. Is there no way of stoppping the...
  15. PaulAH

    VB launches Excel then interesting problem...

    Using a VB app I launch Excel + populate/display a workbook. All works fine if the user closes the workbook then displays another workbook (from witin the VB app)..BUT if the the user closes the Excel application, subsequent workbooks are not visible (although the frame of excel is visible and...
  16. PaulAH

    populate column of datagrid as combo box

    I suggest you try using the MSFlexgrid control which as the name suggests is more flexible than the DBGrid. Take a look at this faq222-3262 Towards the end it specifically deals with overlaying cells with controls such as a combo box Good luck
  17. PaulAH

    files LIKE win32api.txt

    Here's another site to try http://www.mentalis.org/apilist/apilist.php
  18. PaulAH

    Instantiated Excel object is closed by user - VB still works

    I have an app (VB6) which instantiates Excell and creates/displays a workbook to the user via a button. The problem I have is if the user closes Excell the app still works (i.e. the user can recreate a workbook using the button) but any subsequent workbooks created are not visible. The...
  19. PaulAH

    How to embed a template in a document

    I'm embeding a template (.dot) into a document (.doc) by opening the document, selecting Insert/Object/Create from File, selecting the template, and selecting the 'Display as icon' option. This inserts the template OK, displaying as an icon. However when the user opens the document and views the...
  20. PaulAH

    How do I 'catch'/respond to errors generated by Word?

    Hi John, The problem is Vb hasn't generated an error. VB has instantiated a version of word and word has generated the error...meanwhile the Vb app is still waiting for word to complete...here's a copy of the code: (fields such as txtLTPMNL have been retrieved earlier in the code)...

Part and Inventory Search

Back
Top