Debug result
Update tblVerkoopKassa Set [TotaalBruto] = val('12,45') where VerkoopKassaId = 2096
I changed it in:
strSQL = "Update tblVerkoopKassa Set [TotaalBruto] = (""" & Getalwaarde & """) where VerkoopKassaId=" & gintTicketnr & ""
debug result
Update tblVerkoopKassa Set [TotaalBruto] =...
I think I have found a solution!!!
If I use this instruction without the VAL than it is working!!!
Thank you for your help without it I was still trying
In the post on MS they used this syntax
strSql = "Update tblVerkoopKassa Set [TotaalBruto] = val("""& Getalwaarde & """) where VerkoopKassaId=" & gintTicketnr &""
debug result
Update tblVerkoopKassa Set [TotaalBruto] = val(" & Getalwaarde & ") where VerkoopKassaId=2090
but still no decimal
This is the debug result
Update tblVerkoopKassa Set [TotaalBruto] = val(" & Getalwaarde & ") where VerkoopKassaId=2090
Getalwaarde hat a value = 12,12 but in the tabel it is 0
I check the post on MS
Sorry, I had to break the contact yesterday. I try the code!
Ok!
If I use youre last code I get the same error that the update contains a syntax error.
Result from the debug
2.36
236
I don't think the regional setting is the problem. I have read about this before because I thougt also that would be the problem.
Sorry
Hi,
I would like to update a table with a decimal that is in a textbox on a form. The problem is when I use DoCmd.RunSQL "Update.... I only can update an Integer. I tried the conversion whtit VAL, no error but the deciamls are gone! The type in the table is decimal. Tryed other types like...
Ok filterOn is working. Thanks.
I can see that the query is filtered but the strange thing is that when Excel opens I got all the data and not the filtered ones. The query is saved with DoCmd.Close acQuery, "qryKlantenlijst", acSaveYes
or not???
The code is:
Private Sub btnOk_Click()
Dim filterStartPostcode As String
Dim filterEindePostcode As String
Dim filterNaam As String
Dim filterWaarde As String
Dim strFilter As String
On Error GoTo Err_afhandeling
Select Case fraFilterkeuze.Value
Case 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.