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!

Recent content by Johnny42

  1. Johnny42

    First record not getting updated...

    I'm using this snipet to update records in an MSDE database. The code works fine, however it wont update the first record in the loop any reason why ? rs.Open "tblMaterial", cn, adOpenKeyset, adLockOptimistic, adCmdTable r = 2 Do While Len(Range("A" & r).Formula) > 0 With...
  2. Johnny42

    need product

    Can something like this be accomplished ? SELECT TOP 100 PERCENT dbo.tblClient.NomCompagnie, dbo.tblCommande.POClient, dbo.tblStatut.StatutCommande, dbo.tblCommande.DateCreation, dbo.tblCommandeProduit.Discount, dbo.tblCommandeProduit.NomProduit, dbo.tblCommande.PO...
  3. Johnny42

    need product

    Is it possible to obtain a grand total of NET PRICE ?
  4. Johnny42

    need product

    Thanks, ! :)
  5. Johnny42

    need product

    Thanks... Getting error because of 0 values as discount. could I use a case to select discount, if 0 then dbo.tblCommandeProduit.Prix * dbo.tblCommandeProduit.Qte AS [PRIX NET] else dbo.tblCommandeProduit.Prix * dbo.tblCommandeProduit.Discoun * dbo.tblCommandeProduit.Qte AS [PRIX NET] end
  6. Johnny42

    need product

    SELECT TOP 100 PERCENT dbo.tblClient.NomCompagnie, dbo.tblCommande.POClient, dbo.tblStatut.StatutCommande, dbo.tblCommande.DateCreation, dbo.tblCommandeProduit.Discount, dbo.tblCommandeProduit.NomProduit, dbo.tblCommande.PO, dbo.tblCommandeProduit.Qte...
  7. Johnny42

    sort wit text box

    I have a sheet which I need to sort.. However I have placed "Text Boxes" with related comments to the row the "TextBox" is aligned with..... How can I add rows, resort and STILL have the "TextBox" follow the origional row to which it was aligned with ?
  8. Johnny42

    Find help

    Sub FindDates() On Error GoTo errorHandler Dim startDate As String Dim stopDate As String Dim startRow As Integer Dim stopRow As Integer startDate = 151515 startRow = Worksheets("ATELIER").Columns("A").Find(startDate, _ LookIn:=xlValues, lookat:=xlWhole).Row MsgBox startRow End...
  9. Johnny42

    Find help

    Why am I getting this error : error 91 Block With..... With this code: startRow = Worksheets("Sheet1").Columns("A").Find("100", _ LookIn:=xlValues, LookAt:=xlWhole).Row
  10. Johnny42

    seltext

    wow...soooooo sorry.... .SelStart = Len(TB_BOM.Text) '- 1 .SelLength = 1 should be .SelStart = 0 .SelLength = Len(TB_BOM.Text)
  11. Johnny42

    seltext

    Well if there is no match the text does not get selected....
  12. Johnny42

    seltext

    I'm usingthis to check for duplicates ...however I cannot get the seltext to work,... Private Sub TB_BOM_Exit(ByVal Cancel As MSForms.ReturnBoolean) 'msgbox TB_ With Sheet1.Range("R1:R1000") 'TB_BOM.Text Set C = .Find(TB_BOM.Value, LookIn:=xlFormulas, LookAt:=xlWhole) If Not C...
  13. Johnny42

    get file chosen

    how could I call this sub (faq707-4114)and get the chosen file to be returned to the sub that call it ?
  14. Johnny42

    test for empty range

    I'm setting FR as a range. How can I test to see if the range is null ?

Part and Inventory Search

Back
Top