Hi
I'm having an error in this string
Depense2 = DLookup("Sum(Depense)", "[C:\Documents and Settings\schiasson\Bureau\bd2].[" & Me!lst3.Column(0) & "]", "Maitre= IdEngagementA AND IdEngagementA <> '01-000000-BU'")
The error is being cause by this part
"[C:\Documents and...
Hi I wanna insert that in my table
strSQL4 = "INSERT INTO Date850([Date], [IdEngagementA], [Depense]) " & _
"VALUES ('X','" & lst2.Value & "','" & txt2.Value & "') ;"
The first value, X, is suppose to be the date of the day.
Is there a way to get the date on the computer and insert it...
Thanks it helped
But when I try to reset the focus on my previous control a error pop-up.
Say something like : can't activate lst4 control
here's my code
lst1.SetFocus
lst1.ListIndex = lst4.ListIndex
lst4.SetFocus
Hi
I just got a really weird problem and I really don't know what is going on
Here's the code that cause the problem
Private Sub lst1_AfterUpdate()
Dim Total1, Total2 As Long
If IsNull(DLookup("IdEngagementA", "Table850", "Maitre='" & lst1.Value & "' AND IdEngagementA <> '" &...
ok that,s the complete code where I do the if :
Private Sub cmd1_Click()
On Error GoTo Err_cmd1_Click
Dim strSQL1, strSQL2, numero As String
Dim Total1, Total2, Total3 As Long
numero = Format(txt1.Value, "00-000000-00")
If (DLookup("IdEngagementA", "Table850"...
Hi
I'm trying to do a If that would check the database to see if the record that the user wanna create already do so I can tell him
Here's what I have
If
(DLookup("IdEngagementA", "Table850", "IdEngagementA = '" & txt1.Value & "'")) Then
txt1.Value is what the user is gonna enter...
it's a text date with this input mask 00-000000-AA
(sorry I forgot I changed to AA when I wrote just before, but I changed to AA in my code so it'S not the problem)
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.