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...
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...
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
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 ?
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...
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
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.