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 wOOdy-Soft 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: SteveMac32
  • Content: Threads
  • Order by date
  1. SteveMac32

    Load Combo via .ItemData

    Hi Guys I am loading a combo box With cboSalesCallReason .Clear Do Until rs.EOF .AddItem Trim(rs!CallReason) .ItemData(.NewIndex) = rs!URN rs.MoveNext Loop End With I need to set the combo box depending on the .ItemData (the URN)...
  2. SteveMac32

    IGNORE_DUP_KEY return message

    I am running a stored procedure which populates a table and has a IGNORE_DUP_KEY and a clustered index on it I am getting the message that "Duplicate key was ignored" which creates an error in the calling VB program Can this be suppressed or changed somehow? I have tried a number of things...
  3. SteveMac32

    INET control SFTP wont get files

    Hi all really hope you can help me out here.. I know Inet is not the best but this is protocols they use and they won’t let me change them... That said I have been working on this for hours and about to give up, if only I could, I can’t seem to get or put files onto the sFTP site even though I...
  4. SteveMac32

    Strange Timeout expired error

    My VB6 program calls a stored procedure (SQL server 2000) that runs the code outlined below CREATE PROCEDURE [spExportResetDNP] @TableName as varchar(50) AS Declare @SQL as varchar(250) Set @SQL = 'UPDATE ' + @TableName + ' SET ExpProcess = Null Where ExpProcess = 1' Exec (@SQL)...
  5. SteveMac32

    Listview finding selected row number

    Hi all This is/should be a simple one but for some reason I just can’t get it, I think my brain has gone for a long walk. I load the listview from a recordset and when the user clicks on a row I want to be able to look in a particular element and if that element holds a true value we can then...
  6. SteveMac32

    Trap the Tab Key

    Hi all Does anyone out there have any idea on how to get the The KeyPress event to trap the Tab key. I have to write a routine to block the input of certain characters due to the fact that these characters are causing errors when exporting the report into excel. I can trap all except the tab...
  7. SteveMac32

    SStab control tab widths

    I have a program that dynamically adds tabs to the SSTab control, I will not know their captions and so will not know there widths. The problem is that at the moment the program is running .TabsPerRow = .TabsPerRow + 1 .Tabs = .Tabs + 1 .TabCaption(.Tabs - 1) = sCaption...
  8. SteveMac32

    Populating Temp Table

    Hi all hope you can help as this has been bugging me for days. I need to create a temporary table to then report on, the table column headers need to be the values from one table and the column content from another… it goes a bit like this. I have a table that has among other things a...
  9. SteveMac32

    To Call or not to Call

    When is it best to use Call or not. For example if you had a method below in one class Public Sub LoadData(ByVal ID As Integer, ByVal Desc As String) Now to call it from another class would you use LoadData intID, strDesc OR Call LoadData(intID, strDesc) both do the same so is one...
  10. SteveMac32

    SSTab control remove tab not hide

    Hi all I am creating a multitab control dynamically I now need to delete certain tabs an so get rid of all reference to that particular tab and controls held on it. I cant find how anywhere???? Very frustrating can you help?
  11. SteveMac32

    FormatCurrency

    Hi I am trying to get a variable to hold 7 decimal places, simple i thought use FormatCurrency but this does not seem to work with a variable of currency? Try the code below Dim UnitPrice As Currency UnitPrice = FormatCurrency(2.1276595, 7) UnitPrice will = 2.1277 The Currency...
  12. SteveMac32

    Convert database table column from Money to Decimal

    Hi all A rather simple problem but I have not touched SQL for 2 years and I am slowly getting back to it, so am a bit unsure of what could be simple problems. I have a populated existing Money column in a table that now has to change to a datatype of Decimal(17,7) Can I just do an Alter Table...
  13. SteveMac32

    Insert field to RecordSortFields

    I have inherited a report that has 4 group headers on which the report will be sorted, I have been tasked to add an extra one, this is where my problem begins. I have added an extra groupheader to sort by but from what I can tell a value is not being added into the RecordSortFields. I have...
  14. SteveMac32

    Group header Reference

    Using VB When adding a GroupHeader how do you edit the reference i.e In the designer the group header reads Group Header #1: ado.ExecutiveCode – A (GroupHeader1) I add a new one it reads: Group Header #2: ado.CustomerCode – A (Section3) I want (section3) to read (GroupHeader2)...
  15. SteveMac32

    Is Group Header suppressed?

    Hi all I am suppressing a Group header through VB (ExecGroupHeader.Suppress = True) I now need to add a ‘New page before’ if the Group Header is suppressed. So in the ‘New page before’ option in the Section Expert I am checking to see if the GroupHeader is suppressed but can not figure out what...
  16. SteveMac32

    MSFlex Grid scroll

    This may sound strange, well it is, I have a MSFlex grid that is populated with 37 columns and 6 rows, this is all fine. When you use the horizontal scroll bar (vertical not required) to view the columns on the right, focus goes from the top row to the bottom row and does not move to the right...
  17. SteveMac32

    How do you find an installed App

    I am writing an application, which will both launch and pass parameters to a second application. I think the best way to launch the second app would be to use the Shell command passing the parameters to the second app. Would you agree… All well and good, now the user will install this second...
  18. SteveMac32

    System32 Folder

    Hi all, I want to run a batch file that will move various specified files to the System32 folder at the moment I use: For XP copy ..\utilities\buildexe\buildexe.exe c:\windows\system32 2000 and below copy ..\utilities\buildexe\buildexe.exe c:\winnt\system32 Is it possible to run one batch file...
  19. SteveMac32

    Load Image list from Resource File

    Hi all I need to populate a treeview useing the image list to provide the images for the nodes. I have about 200 existing icons in a resource file, what I want to do is instead of loading the image file with all the images at design time I want to loop around the resource file at run time when...
  20. SteveMac32

    Dynamic naming of a treeview Node

    I need a hand here. I create a node when the user picks the ‘Create New Child Node’ option from a menu.... this is not a problem the problem is the naming of this node, as this will be user definable. After the Node has been created it needs to be selected with the blinking cursor in the name...

Part and Inventory Search

Back
Top