Minh Tiên > 06-10-13, 10:46 AM
(03-10-13, 09:37 PM)Xuân Thanh Đã viết: Khi đã up vào phụ được (text) thì dùng hàm Val dể chuyển từ text sang số
Thân mến
paulsteigel > 06-10-13, 11:55 AM
INSERT INTO tbDst ( SumOfTHANHTIEN, SOHD )
SELECT Val([Amount]) AS Expr1, a.SOHD
FROM tblSrc1 AS a LEFT JOIN tbDst AS b ON a.SOHD = b.SOHD
WHERE (((b.SOHD) Is Null));
Minh Tiên > 12-10-13, 06:36 PM
Set rst = CurrentDb.OpenRecordset("SELECT SohieuTK, Count(SohieuTK) AS CountOfSohieuTK FROM tblSodudauky_Excel_Tam GROUP BY SohieuTK HAVING (((Count(SohieuTK)) > 1)) ORDER BY SohieuTK;")
If rst.RecordCount > 0 Then
rst.MoveFirst
Do Until rst.EOF
Loi = rst!SohieuTK & "; " & Loi
rst.MoveNext
Loop
iText = "Nha65p kho6ng tha2nh co6ng !" & vbNewLine & " - Lo64i: Trong file Excel bi5 tru2ng ca1c so61 hie65u ta2i khoa3n: " & Loi
Application.Assistant.DoAlert "THÔNG BÁO", UniConvert(iText, "VNI"), 0, 3, 0, 0, 1
rst.Close
Exit Sub
Else
Thực hiện Update vào table chính !
End If
rst.Close
nhoc77 > 06-01-15, 09:33 AM