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 Wanet Telecoms Ltd 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: Johnny42
  • Order by date
  1. Johnny42

    First record not getting updated...

    ...cn, adOpenKeyset, adLockOptimistic, adCmdTable r = 2 Do While Len(Range("A" & r).Formula) > 0 With rs strSQL = "select * from tblMaterial where refMaterial = " & Int(Range("A" & r).Value) 'Item1'" On Error Resume Next .Open strSQL, cn, adOpenKeyset...
  2. Johnny42

    need product

    ...dbo.tblCommandeProduit.Qte, dbo.tblCommandeProduit.Prix, dbo.tblCommandeProduit.Prix * (CASE WHEN dbo.tblCommandeProduit.Discount = 0 THEN 1 ELSE dbo.tblCommandeProduit.Discount END) * dbo.tblCommandeProduit.Qte AS [PRIX...
  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 ?
  15. Johnny42

    SQL INNER JOIN WHERE

    Thnaks, GOT IT !
  16. Johnny42

    SQL INNER JOIN WHERE

    strSQL3 = "INSERT INTO tblInventaireManip (refInventaire,Qty,Remarque)" strSQL3 = strSQL3 & " SELECT refMaterial,0,'Initial quantity' " strSQL3 = strSQL3 & "FROM tblMaterial" strSQL3 = strSQL3 & "WHERE [tblMaterial].Rouleau = 0" why is the where not working ?
  17. Johnny42

    Insert based on another table

    Table1=tblAssMaterialSupplier(,refMaterial,Defaut) Table2=tblSupplier(refSupplier,NomCompagnie) Table3=tblMaterial(refMaterial,Material,Marque) I would like to insert into table1 all records from table3 where Table1.refMaterial =Table3.refMaterial Table1.Defaut=1...
  18. Johnny42

    RESET AUTONUMBER

    Thanks.. DBCC CHECKIDENT ('MyTable', RESEED, 1) works fine :)
  19. Johnny42

    RESET AUTONUMBER

    Sorry for the caps....Will this work on an MSDE?

Part and Inventory Search

Back
Top