Hi Shoakat,
Quote:
|
quote:The data types are 50 and 19/18/2004
|
I don't see any datatype from your post or no mention about which varibale contains what...
Assuming things on my own, this might help you.
Code:
strUpdate = "update tblCustRate set dtRateFrom ='" & ndateFrom & "', dtRateTo = '" & _
ndateUntil & "', decHourlyRate=" & nHourlyRate
Suresh,
AND shouldn't be used with the SET clause, instead COMMAs are used as delimiter between different COLUMNs and its values. AND is used only with WHERE CLAUSE for specifying Multiple expressions.
_________________________
- Vijay G
Strive for Perfection